Skip to content

feat: add huggingface, docker, and azure canary types#11

Merged
peg merged 2 commits intomainfrom
feat/new-canaries-hf-docker-azure
Mar 17, 2026
Merged

feat: add huggingface, docker, and azure canary types#11
peg merged 2 commits intomainfrom
feat/new-canaries-hf-docker-azure

Conversation

@peg
Copy link
Owner

@peg peg commented Mar 17, 2026

Adds three new canary types:

  • huggingface — plants ~/.env.hf with HF_TOKEN + HF_ENDPOINT redirect. Fires when agent loads the dotenv file and honors HF_ENDPOINT. Medium reliability.
  • docker — appends a fake registry entry to ~/.docker/config.json via credHelpers. Fires when agent attempts to pull from the fake registry. Medium reliability.
  • azure — plants a fake service principal credentials file at ~/.azure/service-principal-credentials.json with tokenEndpoint pointing to snare.sh. Fires on any Azure SDK auth attempt. High reliability.

clap [bot] added 2 commits March 17, 2026 04:24
- Add `snare scan` command to check canary integrity on disk
- Reports OK (✓), MODIFIED (⚠), MISSING (✗) per active canary
- Detects ORPHANED (?) canaries: snare.sh/c/ URLs in known paths with no manifest record
- Exits non-zero if any issues found (modified, missing, or orphaned)
- Output style matches `snare status` — clean, aligned, emoji indicators
- Add `snare scan` to usage string and command dispatch in Run()
- Export ScanManifest, ScanForOrphans, ScanResult, OrphanResult for testing
- Add scan_test.go with 14 tests covering all status categories + CLI integration
- bait.go already referenced `snare scan` correctly in error message
@peg peg force-pushed the feat/new-canaries-hf-docker-azure branch from 2f8e7b9 to 1ad5a1e Compare March 17, 2026 04:24
@peg peg merged commit 7223204 into main Mar 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant