You wouldn't believe the number of networks I've seen saved by canary credentials, this stuff works and it works extremely well.The first thing most threat actors do when they successfully break into a network is look for useful credentials to pivot off of or escalate access with. Make sure they find some.fake API keys, usernames and passwords, session tokens, NTLM hashes, password.txt. Put them everywhere. Servers, employee endpoints, password managers, the web browser's password/session databases, cloud storage buckets, network shares.The credentials should look legitimate, high value, and be unique to each individual system or user. That way you can set up granular detection for what happens when an attacker attempts to log in with a canary credential.You can not only instantly lock out the system it was stolen from, but also any real credentials belonging to that system/users, which may have been exfiltrated in the process.

all 4 comments

sorted by: hot top controversial new old

@malwaretech We used to call these honeytokens in my times 🙂

  • source
  • @malwaretech back in the before times, i made sure to always have a 16-24 character not-a-real-password written on a post-it and slapped either on my monitor or under my keyboard. I'm not a particularly high-value target, but I daresay most initial entry points aren't either. :)

  • source
  • [–] 1 point 1 day ago* (last edited 1 day ago)

    @malwaretech One of my old sysadmins would rename sudo to something else and set a script that would email the admin group when someone ran regular sudo.

  • source
  • [–] 1 point 21 hours ago

    @malwaretech It's a great idea. It also requires paying enough sysadmins to actually do stuff like this rather than meatgrinding everything from upstream sources.

  • source