Repository navigation
Conversation
Embed MITRE ATT&CK, OWASP WSTG and MITRE CWE ids, names, categories and capped descriptions generated by scripts/knowledge/build.py. The pack records the source URL, license, retrieval date and SHA-256; the license texts and attribution live in knowledge/NOTICE and knowledge/licenses. Expose a read-only knowledge_lookup tool to the planner and the workers so an agent can resolve an entry by id or keyword and cite the id in findings and facts. The data files keep their own licenses; the repository's AGPL-3.0 covers the code. Refs #521.
knowledge_lookup takes a taxonomy id or keyword, never a connection. Add it to the intercept noTargetTools list so the target gate does not read targets from its query. TestDomainToolsDeclareNoTarget now covers the new domain tool. Refs #521.
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.
What
Adds a small, versioned security taxonomy pack and a read-only
knowledge_lookuptool for the planner and the workers.knowledge/: MITRE ATT&CK Enterprise (706 techniques), OWASP WSTG (133 tests), MITRE CWE (956 weaknesses). Each entry has an id, name, category, a capped description, atruncatedflag and the canonical URL.knowledge/data/sources.json: source URL, license, retrieval date, source SHA-256 and entry count for each file.knowledge/NOTICEandknowledge/licenses/: attribution and the license texts. The data files keep their own licenses; the repository's AGPL-3.0 covers the code.scripts/knowledge/build.py: regenerates the pack from the official sources.agent/knowledge_tool.go: theknowledge_lookuptool (source, query, optional limit; exact id or keywords; max 20). It is advertised to the planner and the workers..dockerignore: only the top-level/dataruntime directory is excluded, soknowledge/datastays in the build context.Why
The planner and the workers plan in free text. Stable ids let a finding or a fact cite
CWE-79,T1190orWSTG-ATHN-01, which is the base for coverage checks, finding enrichment and RSI lessons. A large community corpus was evaluated and rejected: most of it is benchmark tarballs and duplicates, and the rest has unclear redistribution rights. This pack is built from the primary sources instead.Tests
go test ./knowledge(load, exact lookup, keyword search, limit, errors, duplicate ids)go test ./agent -run TestKnowledge(tool output, limit clamp, errors, read-only)go build ./...go vet ./knowledge ./agentgofmt -lon the new filesThe Docker build stage was not built locally because the Docker daemon is off. The
.dockerignorechange keepsknowledge/datain the context andgo build ./...covers the embed.Limits
Closes #521.