feat: add huggingface, docker, and azure canary types#11
Merged
Conversation
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
2f8e7b9 to
1ad5a1e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds three new canary types:
~/.env.hfwithHF_TOKEN+HF_ENDPOINTredirect. Fires when agent loads the dotenv file and honorsHF_ENDPOINT. Medium reliability.~/.docker/config.jsonviacredHelpers. Fires when agent attempts to pull from the fake registry. Medium reliability.~/.azure/service-principal-credentials.jsonwithtokenEndpointpointing to snare.sh. Fires on any Azure SDK auth attempt. High reliability.