Raven-Gt/ai-agent-attack-signatures
حول
Traffic signatures and detection methodology for AI-powered penetration-testing agents. Audited 65 frameworks; only 10 leave an attributable fingerprint on the target side.
الأمان والخصوصيةالنمو المقاس للنجوم
- خلال 24 ساعة
- +٧
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلai-agent-attack-signatures
Paper:
docs/PAPER.md(LaTeX inpaper/) | Dataset card:data/DATASET_CARD.md
618 traffic signatures, 66 of them deployable, extracted from 65 audited AI-pentest codebases. They match zero rules across 9,905,794 real internet requests and 142,705 real WAF attack transactions.
But only 10 of the 65 frameworks leave anything attributable on the target side, and that boundary is the useful result: it is where attribution stops working, and we measure it instead of hiding it.
The finding that matters
Most AI agents delegate the actual attack to general-purpose tooling (sqlmap, ffuf, nuclei, curl). From the target's side that traffic is indistinguishable from a human running the same tools.
A signature catalogue that ignores this is not a detection capability.
So the repository ships both the signatures that survive real traffic and a behavioural detector that answers the other question - was this an agent - with 127 features across thirteen families and seventeen evidence rules.
What we measured about agent behaviour
The behavioural layer is not a black box: every quantity below is recomputed by a script in this repository and asserted by CI.
| Behaviour | AI agent | Tool-driven scanner | Real attacker |
|---|---|---|---|
| Requests that fail | 43% | 97% | 64% |
| Same endpoint retried after a failure | 19.5% | 0.34% | - |
| Mean request path depth | 4.03 | 1.00 | 1.13 |
| Share of requests on authentication endpoints | 14.9% | 1.4% | 0.0% |
| Share of requests on discovery endpoints | 3.5% | 10.7% | 40% |
| Requests to a single inference endpoint first | yes | no | no |
| Distinct targets touched per actor | 3 | 4,548 | 51 |
| Request-shape entropy (method, tool class, referer, forwarded-for) | 0.439 | 0.000 | 0.450 |
| OpenAPI-driven enumeration: switch rate after a failure | 0.65 | 0.99 | - |
Three of these are worth a sentence each.
- A scripted word list moves on after every failure; an agent stays. 19.5% versus 0.34% is a factor of 53, and it is why rule E17 exists.
- An agent goes deep. Its mean path depth is 4.0 against 1.0 for a scanner, because it is following an interface rather than sweeping top-level paths.
- An agent starts from its own infrastructure. Its first outbound connection is a long TLS session to its inference endpoint; a real intrusion opens on internal name services.
The dataset
Everything the numbers above are computed on is shipped here, with provenance.
| Path | Contents |
|---|---|
data/positive/ |
16 AI-agent attack captures, 221,592 requests, 17 frameworks |
data/negative/ |
Tool-driven scanner captures, plus the honeypot actor sets |
data/features/ |
Pseudonymised per-actor feature vectors (the evaluation set) |
data/aggregate/ |
Every result table, the framework coverage matrix, rule validation statistics, checksums |
data/DATASET_CARD.md |
Provenance, licensing, class definitions, known biases |
Two things about the negative set are stated rather than glossed over, because they change how the numbers may be quoted:
- The honeypot set of 68,874 actors was exported before the collector learned to tag events
with an
actor_class. Re-aligning it shows that none of those actors contains a real attacker: the population is almost entirely automated enumeration and our own synthetic traffic. A clean re-export yields 2,016 actors over 1,552 source addresses, of which only 23 carry enough requests to have every feature computed. Any false-positive rate stated on real attackers therefore rests on a small sample and has to be quoted with its interval. - Half of the SSH command population (110,794 of 219,117 commands, 50.6%) is the honeypot sensor's own probe traffic. What remains is IoT botnet scripting. There is no human at a shell in the honeypot at all.
Source addresses are not masked: these are the public addresses that attacked the honeypots, and they are what makes the set useful for rule development. Payload binaries are not included, for the opposite reason.
What is here
| Path | Contents |
|---|---|
signatures/ |
The MIT-licensed subset: 452 rules (T1 56 / T2 246 / T3 150) in Elasticsearch KQL, Splunk SPL, Suricata and Sigma, plus the metadata JSON |
signatures/agpl/ |
The copyleft-derived subset: 166 rules from AGPL/GPL upstream frameworks (T1 10), independently deployable, AGPL-3.0-or-later |
docs/ |
Methodology, results, framework coverage matrix, limitations, threat model, deployment guide |
research/ |
Reproducible pipeline, the detector, the evaluation code, and the CI checks |
figures/ |
12 paper-grade figures with a caption file carrying the headline number of each |
Quick start
Start here: measure the rules against your own traffic before you deploy them.
# 0. check the tool runs, on the sample we ship (10 seconds)
python -m research.validation.scan_local_traffic --input data/samples/nginx_access_sample.log
# 1. now run it on YOUR traffic - this is the number you actually care about
python -m research.validation.scan_local_traffic --input /var/log/nginx/access.log
The report is about a kilobyte and contains counts, rule identifiers and score
statistics. It contains no source address, no path, no header and no body, so it can be
posted as it is. Every deployment of this rule set should measure its own false-positive
rate first - see docs/VALIDATION_BY_DEPLOYER.md for
the public record of who has done that and what they found.
# 2. deploy only T1 rules - T2 is generic attack semantics, T3 is generic tooling
grep -i 'tier.*T1' signatures/ioc_rules_es.kql | head
# 2. replay your own recent traffic before going to production
# T1 matched 0 of 9,905,794 public internet requests and 0 of 142,705
# real WAF attack transactions - confirm the same in your environment
# 3. alert on actors, not on requests
# decision unit = all requests from one source address within one time window
# on the 9.9M-request scan, exactly 1 of 80,987 source IPs matched >= 2 rules
Key results
Signature validation
| Dataset | Scale | T1 hits |
|---|---|---|
| Public internet traffic | 9,905,794 requests / 80,987 source IPs | 0 |
| Real WAF attack transactions (ModSecurity OWASP CRS, 30 days) | 142,705 transactions | 0 |
All 16 rules that did match on public traffic are T2/T3 (generic attack payloads and generic tooling identifiers) and are excluded from deployment.
Behavioural detection
| Metric | Value |
|---|---|
| AI-agent actors captured (15 segments / 12 frameworks) | segment recall 13/15 = 86.7% |
| framework recall 10/12 = 83.3%, one-sided 95% lower bound 0.779 (0.05^(1/12)) | |
| leave-one-framework-out recall 9/10 = 90.0% | |
| False-positive rate on real attackers (1,582 actors) | 2.72% (95% CI [2.02%, 3.64%]) |
| False-positive rate on tool-driven scanner actors | 66.67% (4 of 6 actors; sample is ffuf-dominated - see Limitations) |
Rule tier composition (T1 = 66 across both licensed subsets)
| Field | Count |
|---|---|
| Request body | 25 |
| Request path | 5 |
| HTTP request header | 5 |
| User-Agent | 31 |
| Other (TLS, proxy, credential) | 0 |
| OAST domain | 0 |
T1 covers 23 framework labels at the source level. Only 10 were validated end-to-end as
attributable on the target side - see docs/FRAMEWORK_COVERAGE.md
for the full matrix and the reason for each.
Independently confirmed
Four framework maintainers have reviewed their own entries in issue #1 and every one of them corrected us - Cybermes added a marker we had missed, NeuroSploit caught a mis-transcribed field name and demoted a User-Agent we had promoted, pentest-ai demoted two of our tier-1 rules to tier 2 because they are generic attack semantics, and Agent Zero demoted its only tier-1 signature for the same reason.
That is the standard we hold every framework to, and it is why the signature set is trustworthy rather than merely plausible.
The full record, including what each maintainer corrected and which rule changed as a
result, is in docs/MAINTAINER_CONFIRMATIONS.md.
Limitations (read before deploying)
- Attribution is not detection. The signatures answer which framework sent this
request. They do not answer was this an AI agent. That question belongs to the
behavioural layer in
docs/METHODOLOGY.md, which reaches 86.7% segment recall at a 2.72% false-positive rate - and fails on tool-driven traffic. - AI agents that delegate to generic tooling are not distinguishable from a script. Measured on six independent scanner actors: 66.67% false positives. The sample is ffuf-dominated (910 of 999 request records), so that figure characterises ffuf-style enumeration rather than a balanced multi-tool sample.
- Passive HTTP detection alone is insufficient. The evidence that separates an agent
from a human is the identity it uses and the endpoint it talks to; both live on the server
side. A packet capture alone cannot see them - see
docs/LIMITATIONS.md.
Reproducing the results
Every number in this README is asserted by CI against the shipped artefacts.
python -m research.run_all # recompute detection and false positives
python -m research.ci.check_headline_numbers # check every published number
python -m research.ci.readme_numbers --write # recompute the numbers quoted above
Contributing
Framework authors: please submit your own signatures. A signature set rots fast - one User-Agent change and a rule dies. We audit by downloading repositories and reading source, which takes days per refresh. If you maintain one of the frameworks covered here, you know your own markers better than we do.
- open an issue using the
new-framework-signaturetemplate, or - open a pull request adding your signature to
signatures/rules.json, or - tell us a signature no longer matches so we can retire it.
You can also ask us to remove a signature for your framework; we will honour that.
Nobody needs to write code to contribute. The four most valuable corrections this repository has received were one sentence each: a maintainer saying a rule does not match their framework, or that a rule is really a generic attack string. If you tell us a rule is wrong we will check it, and we will either fix it or explain why you are right - and we thank you either way.
The ladder, smallest first:
| Contribution | What you need | |
|---|---|---|
| 1 | Measure the rules against your own traffic | one command |
| 2 | Report a signature that no longer matches | the stale-signature template |
| 3 | Question a tier assignment | the research-idea template |
| 4 | Add your own framework's signature | a pull request |
| 5 | Benchmark your detector on our published corpus | the corpus and the scripts |
See CONTRIBUTING.md, docs/RESEARCH_AGENDA.md
and docs/VALIDATION_BY_DEPLOYER.md.
Project documents
| Document | What it is for |
|---|---|
docs/PAPER.md |
The full paper |
docs/DEPLOY.md |
How to load and validate the rules in production |
docs/METHODOLOGY.md |
The detector: decision unit, features, evidence rules, algebra |
docs/RESULTS.md |
Every measured number |
docs/FRAMEWORK_COVERAGE.md |
Per-framework attribution matrix |
docs/LIMITATIONS.md |
Where attribution provably fails |
docs/THREAT_MODEL.md |
Offensive risk of publishing this, and the maintenance model |
docs/RESEARCH_AGENDA.md |
Seven questions we think we are getting wrong, with our own best guess attached |
docs/MAINTAINER_CONFIRMATIONS.md |
What each upstream maintainer corrected, and what changed because of it |
docs/VALIDATION_BY_DEPLOYER.md |
False-positive rates measured by people deploying the rules in their own traffic |
data/DATASET_CARD.md |
Dataset provenance, licensing and limitations |
CHANGELOG.md |
Release history |
Citation
See CITATION.cff. If you use the signatures, the dataset or the
methodology in published work, please cite the repository and the paper referenced there.
License
The repository is MIT licensed (LICENSE). Signatures derived from copyleft-licensed
upstream frameworks are isolated under signatures/agpl/ and carry their own
AGPL-3.0 / GPL / LGPL terms - see NOTICE.
Third-party framework names and identifiers are the property of their respective authors and are used for research attribution.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…