/ Honest comparison
inotify catches the read. Snare catches the use.
File watches tell you a path was touched. Snare tells you an agent actually tried to authenticate with what it found, via the SDK's own credential resolution path. Before any API call.
Read detection and use detection are different layers. Defense in depth.
- File watch
- ~/.aws/config read by unknown process
- Gap
- Read does not prove the key was used
- Snare
- SDK resolved the planted profile; callback fired
File watching
What file watching does well.
File watches are broad and practical. inotify, auditd, and Falco file rules can detect reads, modifications, moves, and deletions across arbitrary paths without caring what the file contains.
Works on any file.
You can monitor SSH keys, config files, build outputs, secrets directories, or random bespoke paths. The mechanism is generic.
Integrates cleanly.
These signals plug into SIEM pipelines, audit systems, compliance checks, and host visibility workflows you may already operate.
Mature tooling.
Falco in particular has strong ecosystem support, good defaults, and operational knowledge behind it. This is not experimental territory.
The gap
The gap file watching does not cover.
File read is not the same thing as credential use. An agent can read ~/.aws/config and copy it elsewhere without ever making an AWS call. inotify catches the read. Snare catches the use, when a tool actually resolves the planted profile. These are different moments in the attack chain.
The file gets opened.
That is valuable signal, especially for anomaly detection and compliance, but it is still an early indicator rather than proof of attempted exploitation.
The secret may leave the box.
The attacker can ship the file elsewhere and use it later. At that point the original file watch has done its job, but its visibility has ended. Snare does not see this step either, and raw values copied out and used directly never fire it.
A tool uses the planted config.
That is where Snare trips, on this machine or wherever the config was taken: the planted profile, host, or client config sends the use attempt to the callback and gives you network context around the action.
Recommendation
Use both.
Use file watching for read detection, compliance, and host-level anomaly signals. Use Snare for use-based detection when the credential or config actually gets exercised. That pairing gives you better coverage across the attack chain.
File watches
Read and modification telemetry.
Best when you need broad path coverage and operational integration with host monitoring.
Snare
Credential use telemetry.
Best when you care about the exact moment an agent or script uses the planted config.
Try Snare
Arm the canaries that fire on use.
Keep your file rules. Add a use-based tripwire for the credentials and configs your agents are most likely to touch.
curl -fsSL https://snare.sh/install | sh$ snare arm --webhook https://hooks.slack.com/services/...
…
Precision mode: planting active-use canaries only (awsproc, ssh, k8s, git, npm)
…
🪤 5 canaries armed.
…