7 ms·
Canary Tokens
- schoen 4y agoCool idea! I immediately thought of a concern which is already highlighted in their FAQ: > What if attackers blacklist the canarytokens.org domain? Doesn’t that work? > This would work! That’s why we suggest that you download the canarytokens docker image and run your own server. (You can grab the source to build it yourself from here) This seems like something that could be highlighted more prominently, since the main site makes it so extremely convenient to use a hosted token (where some knowledgeable attackers can avoid triggering the canary).
- burnished 4y agoDo you think any one in practice will be watching for this domain? My suspicion is that it will still work for most people, but I am ignorant, and am basing this on how competent I see people behave in general. Moving that item up to be more prominent does sound like a good idea though
- cmeacham98 4y agoWould depend on the method. For the ones that are automated like opening a PDF - I doubt many attackers will bother blacklisting the domain in their DNS. But for the manual ones, like opening a link - it'd probably be better to host them at a much less suspicious sounding domain.
- ARandomerDude 4y ago> Do you think any one in practice will be watching for this domain? I would bet money that multiple governments already do.
- burnished 4y agoHmm, why? It seems like another risk to let people mark urls as 'please do not read' and respect it
- eastbound 4y agoAn easier service would be if canarytokens.org allowed us to CNAME our a subdomain of our company, so the token would be sent to hj.example.com. But that would make canarytoken.org a public service, which requires funding.
- mh_ 4y agoYou totally can?
- jenny91 4y agoDon't let perfect be the enemy of good. I really doubt that many hackers have blacklisted this domain (while not working on offline machines). A self-hosted version must also be tested and maintained, this is an easy set and forget solution.
- ilyt 4y agoWell, they will now :D
- wslh 4y agohttps://bittrap.com https://bittrap.com does this with crypto wallets.
- czx4f4bd 4y agoThis gives me a thought: is there any service out there that creates and monitors canary tokens on a larger scale to try to identify when specific providers have been breached? In light of the LastPass breach, it seems like it would be useful if someone had created a few LastPass vaults and seeded them with some canary tokens (and probably canary crypto wallets), so if any of those tokens or wallets were used, it would almost certainly indicate that attackers had breached LastPass and successfully cracked vault passwords.
- burnished 4y agoThat is an incredible thought, I think it would have to be done independently though.
- kfichter 4y agoFor what it's worth, I maintained a crypto canary in LP and it hasn't moved yet. I do think it's worth keeping a canary wallet with some small amount of crypto in any password manager. Although it probably wouldn't be effective to detect targeted attacks, crypto wallets are probably very effective for widespread/untargeted attacks.
- AdmiralAsshat 4y agoDo keep us posted if it changes!
- deleted 4y ago[deleted]
- Eisenstein 4y agoLet's do it. I just bought carnarychecker.com Any devs want to volunteer? I don't know shit about how to make it work. EDIT: If anyone wants it and promises to do something like the post above suggested I will transfer the domain, I really did buy it. EDIT 2: canarychecker.com is the one I registered.
- BalinKing 4y ago
- aphroz 4y agoGood idea, but this would need to be maintained over the years in order to be effective. And you should also trigger it yourself regularly but not too often to make sure it works.
- type-r 4y agowhy not too often?
- AviationAtom 4y agoWorked most excellently for testing Log4j vulnerabilities just a short while ago.
- lazyasciiart 4y agoHow?
- AviationAtom 4y agoIIRC Log4j roughly allowed loading arbitrary code from a URL. The mere process of trying to access that URL would cause a DNS request to the canary token domain. I discovered that one of the major 2FA code SMS delivery gateways was actually susceptible to Log4j, where I could have potentially gotten a shell on their were, were I to have made an effort to. That could have allowed me to intercept all 2FA codes from major financial institutions that utilized the service to deliver 2FA codes to their customers. On the underground fraudsters would have paid handsomely to be able to get past 2FA on accounts they had stolen creds for, without even having to SIM swap. It goes to show how these services can be used for many purposes, offensive and defensive.
- armchairhacker 4y agoHas anybody actually detected and prevented some kind of hack by using a canary? I don't doubt they can be useful but I suspect they aren't really used that much
- dangero 4y agoModern compilers have flags that add memory and stack canaries does that count?
- riggsdk 4y agoThose canaries are meant to detect something bad happening within an executable. These canaries are instead meant to detect something bad happening "between" executables of sorts - i.e. malicious usage of said executables/services. It's like placing unlocked safes all over your (locked) house with stuff that looks valuable to thieves. You know it's worthless so you never touch them. If a thief does however, you will know immediately. The overlap with honeypots here can be a bit fuzzy I guess.
- dannyw 4y agoI have. I kept about $500 worth of bitcoin, as an unencrypted wallet.dat file, on my gaming PC in which I sometimes run untrusted executables. One day, I got a notification the coins have been moved. After realising it wasn't a false positive, I immediately disconnected and imaged the PC, and sure enough, deep investigation found malware. Small price to pay, as it alerted me to rotate all passwords and sessions, and alert the community about the compromised executable. To this day, I keep some crypto on every device I use. If not breached, it doesn't cost me anything. I even have a paper wallet in my physical wallet.
- Scoundreller 4y agoI like this so much!!!! (Partly because I think I've suggested a couple times here a long time ago to hold some bitcoin private keys in your "most secure" code/dir/whatever and monitor if they go missing, but I'm probably not the 1st to think about it as a bounty) Do you know if the $500 was moved 'automatedly' or by a human? If the former, makes you wonder if $0.01 would do it. (I guess network fees don't matter since you'd still see it pending on the block chain and that's good enough)
- deleted 4y ago[deleted]
- _8j50 4y agoI evaluated this a while back. Cool idea but limited application in a corporate environment. But for personal use, why not? Someone needs to open a document for the canary token to trigger. Even the smallest company with M365 gets MSIP (formerly Azure Information Protection), if you classify your docs right, only people who own or have been shared the document can decrypt it and even without a good classification, you get logs of any M365 document being opened, so why can't I just have a regular but public doc everywhere and monitor when it gets opened from external IPs, user agents,etc.... I struggled to show value for this. Honehashes are more interesting for me: https://github.com/EmpireProject/Empire/blob/master/data/module_source/management/New-HoneyHash.ps1 https://github.com/EmpireProject/Empire/blob/master/data/mod...
- icecap12 4y agoNot everyone is using Azure and a full M365 implementation though.
- _8j50 4y agoFair enough, but you need some sort of data classification and usually that tool can also do protection and leak detection. This tool is focused on just the canary part, if you have documents that can just get copied on a usb drive or emailed and exposed to the public there are plenty of good solutions before you accept that as an inevitable reality and implement leak detection via canaries. Don't get me wrong though, I'm a believer in deception tech in general.
- Zamicol 4y agoThere was https://www.canarywatch.org https://www.canarywatch.org being pushed by the EFF that now appears to be out of service.
- schoen 4y agoThat was about a somewhat different kind of canary: https://en.wikipedia.org/wiki/Warrant_canary https://en.wikipedia.org/wiki/Warrant_canary
- Phelinofist 4y agoIs something like this possible with shell logins? So basically every time a login to some Linux box is done it triggers a notification?
- kilroy123 4y agoYes, this is what I do for all my boxes. In /etc/pam.d/sshd I set this, which then emails me. session optional pam_exec.so seteuid ~/login-notify.sh
- Phelinofist 4y agoCan this somehow be circumvented? I would like to employ something like this as poor mans intrusion detection
- tsujamin 4y agoSo many times on engagement I’ve opened files that looked like canaries but we’re just dumb jokes between sysadmins (is_rsa containing “hah got you” for instance) A dozen canary tokens will probably get your security detection program alot further than your first $2M of splunk license
- rsync 4y agoI have a shell login canary that uses the twilio API to send me an SMS: ~/.login contains the line: /usr/local/sbin/sms ... ... where 'sms' calls the twilio API like this: /usr/local/bin/curl -s -X POST -d "Body=$msg" -d "From=$from" -d "To=$to" "https://api.twilio.com/2010-04-01/Accounts/$accountsid/Messages" -u "$accountsid:$authtoken"
- mike_d 4y agoI appreciate that they made the icon for DNS tokens Dan's photo.
- pifm_guy 4y agoRelated: serverthiefbait.com
- CommanderData 4y agoMy colleague uses this in his CV to notify when and who has opened it. Pretty cool stuff. Says he got around Google and MS flagging his CV as malware which I'm unsure how.
- mike_hock 4y ago> Windows provides an even cooler way to get notified, in the guise of the venerable old desktop.ini configuration file. Dropping a desktop.ini file in a folder allows Explorer to set a custom icon for a file. Since this icon can reside on a remote server (via a UNC path), using DNS we can effectively make use of a token as our iconfile. KEK. So just unpacking an archive and browsing the directory structure in Explorer is a threat to your privacy.
- gsora 4y agoLove Canary Tokens! I use an HTML one to get notified whenever someone opens the CV page on my static website.
- ilyt 4y agoI guess it's a way if you don't have server logs.
- jrootabega 4y agoNot exactly "canaries", in that you won't know if they're dead. If you were to use this device/service, you'd want to test some/all of them every now and then to know if they still did what you want. Or just cross your fingers and consider them bonus security.
- 19h 4y agoFunny. In all the companies I worked at so far I added very long random tokens into the databases, which only get returned when dumping the entire database. They specifically are added in a way, and the queries made in a way, that those entries are never returned. A separate container monitors all traffic returned by the databases and if those tokens are detected, the databases are essentially shut down by disabling the port of the database until it is manually unlocked again. Funnily enough, I was working at an auction platform and a few times the databases stopped responding. Everyone way furious until I shared why the databases stopped responding.. :-)