Repository navigation
Releases
Agentmetry 0.22.0
Added
-
MCP server tool changes followed by use are detected. A changed MCP tool digest followed by a successful call to that same server raises a high-severity
mcp-schema-change-then-usefinding. It supports client-hook and stdio-proxy event shapes, maps to ATLAS AML.T0109, and does not change the event schema. Contributed by @rumangsanya in #536, their third merged Agentmetry contribution. -
The detection corpus adds MCP schema-change coverage. The release benchmark contains 126 cases, split evenly between attack and benign fixtures, with 66 expected findings, zero misses, and zero false positives.
Agentmetry 0.21.0
Install Agentmetry 0.21.0 from PyPI. The canonical event schema remains 1.3.0.
- Typosquatted and off-registry package installs are labelled. A shell command that installs a package within a small edit distance of a popular PyPI or npm name, fetches from a URL or VCS reference instead of a trusted registry, or points an index flag at an untrusted host, carries the
suspicious_pkg_installobservation and an ATT&CK T1195.002 (Compromise Software Supply Chain) mapping. The label is an observation only: no rule fires from it, credential and network mappings survive on mixed calls, and quoted prose stays quiet. #530 by @anhdttlop9a8-hue, a bounty slice of #317. - Two corpus cases cover the new label. An attack case pairs a typosquatted install with exfiltration and still fires
credential-exfil; a benign case installs legitimate registry packages and stays quiet. The benchmark grows to 124 cases with 65 expected findings, still zero misses and zero false positives.
Thank you @anhdttlop9a8-hue for the second community detection contribution through the bounty program, verified against recorded history before release like #521 before it.
The changelog entry carries the full detail, and the version provenance tests keep version.py, the CLI and the changelog on the same number.
Agentmetry 0.20.0
Install Agentmetry 0.20.0 from PyPI. The canonical event schema remains 1.3.0.
- CI/CD pipeline file writes are labelled. A write that targets a GitHub Actions workflow, a GitLab CI configuration or a pipeline script now carries the
edits_ci_configobservation and an ATT&CK T1562 (Impair Defenses) mapping. The label is an observation only: on a mixed call it never replaces a credential or network mapping, so a pipeline edit that also moves credentials still firescredential-exfil, while a routine pipeline edit followed by a push stays quiet. #521 by @rumangsanya, the first slice of #317. - Two corpus cases cover the new label. An attack case pairs a CI write with exfiltration, and a benign case pairs a routine pipeline edit with a push. The benchmark grows to 122 cases with 64 expected findings, still zero misses and zero false positives.
Thank you @rumangsanya for the first community detection contribution, claimed and delivered through the bounty program.
The changelog entry carries the full detail, and the version provenance tests keep version.py, the CLI and the changelog on the same number.
Agentmetry 0.19.0
Install Agentmetry 0.19.0 from PyPI. The canonical event schema moves to 1.3.0, additive only.
- Preflight follows referenced scripts. A manifest that names a local script gets it resolved, hashed with SHA-256 and checked against the same conservative observation patterns used for skill scripts. Script contents never reach the report. #524
- Read-only GitHub preflight at a pinned commit.
agentmetry scan --github OWNER/REPO@SHAinspects a remote repository without cloning it and without executing anything from it. Truncated trees and scan limits are reported as partial coverage. #525 - Preflight correlates with recorded sessions.
agentmetry scan --with-trailjoins the report with what the recorder observed in that workspace, using aggregate counts only. The correlation key is a SHA-256 digest of the workspace path, computed inside the hook process, so the path itself is never stored or sent. #526
The detection layer is unchanged from 0.18.2. The benchmark still scores 120 synthetic cases, 63 expected findings, zero misses and zero false positives, with the same ruleset fingerprint.
Agentmetry 0.18.2
Install Agentmetry 0.18.2 from PyPI. The canonical event schema remains 1.2.0.
- More precise staging alerts. A download followed only by a permission change stays quiet. A download and a later reported execution can still be correlated by a shared basename. File identity remains unverified. #522
- Stronger heartbeat checks. A recorder heartbeat verifies the newest 200 trail records and degrades when the local tail fails verification or a configured anchor log has a stale or missing checkpoint. #518
- Clearer skill scan coverage. The scanner checks supported script files as text and reports what it skipped or could not read. #519
The benchmark in the published wheel scored 120 synthetic cases, 63 expected findings, zero misses and zero false positives. The wheel also passed isolated Guard controls for a policy denial, a failed connection and an established connection in the same second as a reported credential read. Guard v0.3.1
Agentmetry 0.18.1
Install Agentmetry 0.18.1 from PyPI. This release updates the recorder for Agentmetry Guard v0.3.0. The canonical event schema remains 1.2.0.
- Guard findings require an established connection for credential-to-egress correlation. The recorder preserves Guard's destination-policy denial reason and removes paths and queries from egress observations. #516 · #517
- Claude Code notifications distinguish permission prompts from ordinary notifications. The hook no longer turns an unanswered notification into a denial, and it recognizes both names for the subagent tool. Thanks to Philip for the contribution. #513 · #515
- Interrupted canary writes are recoverable. The recorder also keeps saved-script traits separate from execution evidence and classifies agent configuration edits by their write destination. #506 · #505
The packaged benchmark scored 119 cases, 63 expected findings, 0 misses and 0 false positives. The published wheel passed isolated Guard controls for a policy denial, a failed connection and a successful connection in a later second.
Guard compatibility. Use Guard v0.3.1 for microsecond timestamps. We verified the same-second read and connection sequence with the published 0.18.1 wheel. Guard v0.3.0 still has whole-second timestamp precision and can miss this sequence.
Agentmetry 0.18.0
Ruleset fingerprint: 0aa5fff7ca9e474d, changed from 0.17.0.
Child-process egress visibility: the new agentmetry-guard sidecar
(github.com/blitzcrieg1/agentmetry-guard, experimental, zero-dependency Rust)
plus the ingest and detection support for it. Benchmark: 115 cases, 63
expected firings, 0 missed / 0 false positives; 3052 tests; Sigma pack 30 rules.
Added
network_egressingest (#508). External adapters can report
event_type=network_egress; it canonicalizes to its own action type
(nevertool_called, so tool-sequence rules do not count it) and keeps
correlation_id, so egress events join the agent session in the trail,
the dashboard and the SIEM forwarders.- Two guard detection rules (#509).
credential-read-then-egress
(critical): a credential-access tool call followed by anetwork_egress
event in the same session window, closing the child-process escape where a
script reads~/.sshand phones home without any single tool call looking
like exfiltration.guard-egress-denied(high): the sidecar refused a
denylisted destination. Corpus gains 3 cases including a benign npm-egress
false-positive guard. agentmetry mcp-proxywraps the server in agentmetry-guard when
AGENTMETRY_GUARD=1(#509).AGENTMETRY_GUARD_BINlocates the binary,
AGENTMETRY_GUARD_DENYsets the denylist; the proxy passes its session id
so guard events share the tool calls' correlation. Missing binary or the
flag unset falls back to the raw command.
Fixed
- Provider key shapes are scrubbed in both capture paths (#507). The
five provider keys from #495 (OpenRouter, Groq, Replicate, Perplexity, xAI)
were caught by DLP but not by the capture scrubbers, so a key in a captured
command or nested argument was stored as sent. Both scrub lists now know
the shapes (mirror test keeps them in sync), and the hook scrubs the full
command before truncating, so a token cut at the storage cap cannot survive
half masked. - Heredoc and script-write-then-execute classification, rebased from #361
(#502).bash <<EOFandpython <<PYheredocs now classify as cradles,
and a script body written by the agent is classified before hashing so
script-write-then-executefires on write-then-run (#345, #347).
Agentmetry 0.17.0 (canary honeytokens + provider key DLP rules)
Community release, two days running
Two bounty contributions landed: the opt-in canary honeytoken command and five more provider key DLP rules. Benchmark: 107 cases, 0 missed, 0 false positives. 3013 tests.
Added
agentmetry canary— local honeytokens (#496, @im02-crypto, issue #293). Plant a decoy credential (fake AWS profile or a canary line in a project .env); its value becomes a critical DLP rule, so reading it is a finding at the tool boundary. Local only, never overwrites a real credential, values never enter the trail,removerestores the file exactly. See docs/canary.md.- DLP rules for five more provider key formats (#495, @bewfordq): OpenRouter (
sk-or-v1-…), Groq, Replicate (r8_…), Perplexity (pplx-…), xAI (xai-…), each with a near-miss test that must stay silent.
Contributors are listed in CONTRIBUTORS.md. Sponsorship open at github.com/sponsors/blitzcrieg1; the core stays Apache-2.0 either way.
Agentmetry 0.16.0
This release raises repeated tool denials to high severity in the bundled
policy and updates data loss prevention (DLP) rules for OpenAI and Google
Cloud credentials. The detection benchmark covers 107 cases with zero
misses and zero false positives.
Added
- DLP rule for OpenAI project, service-account and admin keys.
openai_project_api_key
matchessk-proj-…,sk-svcacct-…andsk-admin-…, which broke the genericsk-
rule's alphanumeric run at the first hyphen, so those leaks produced no finding
(#478, #482, #483, @bewfordq). - Git cleanup preview benchmark case. A session that previews cleanup
withgit clean -ndand checks status should produce no detection
(#490, @bewfordq).
Changed
- Repeated tool denials. The packaged policy reports one high-severity
rapid-tool-denialsfinding at four denied tool calls in a session and
includes the supporting event IDs. A replacement detection manifest
controls its own denial rules. Contributed by @rumangsanya (#1, #486).
Fixed
- Google Cloud service-account examples stay quiet. The DLP pack uses the
existingprivate_keyrule for the PEM marker in Google Cloud key JSON. A
service-account type and key ID alone no longer trigger a critical match (#485).
Removed
- Dead state from the removed email runtime in the dashboard. The store no
longer carriesskills,activeSkill,approvalDraft,approvalConfidence
ormemoryHeatmap, andgraph-utilsdrops the inbox, client SOP, escalate
and re-fetch node labels and thescanspecial case. Nothing read any of it
(#26).
Agentmetry 0.15.0 (community release)
Community release
Six merged PRs credited to three external contributors made this a community release. Detection corpus grew 90 to 104 cases, 15 rules covered, 55 expected firings, 0 missed, 0 false positives. 2980 tests.
Added
- DLP rules for Google Cloud credentials:
google_api_keyandgcp_service_account_key, with benign near-miss tests (#465, @surendraSinghKamboj) - Benign corpus sessions: CI deploy sourcing .env, operator kubectl get secrets, bulk git mv rename (#468, @surendraSinghKamboj)
- Host-scoped benchmark coverage; host-subagent-swarm-burst now has a corpus case (#472, @surendraSinghKamboj)
Fixed
- Benchmark scopes host rules per host_id, session rules per correlation_id (#472)
agentmetry dashboard --dev-serverprints the sign-in link on localhost, fixing 401s on the dev dashboard (#474, fixes #301)- Classifier bypasses: shell-quoted downloaders, decode-pipes into a shell, flags before -c/-e (#469, @rmanm19; fixes #346, #388, #391)
- MCP command extraction across eight alternative input shapes (#470, @NSudeep-Rust; fixes #433, bounty)
Contributors are listed in CONTRIBUTORS.md. New to the program: see Discussion #476 for three starter bounty issues. Sponsorship open at github.com/sponsors/blitzcrieg1; the core stays Apache-2.0 either way.