Repository navigation
feat(security): add automated security scanning, scan search filters, and pull support - #1757
Merged
Merged
Conversation
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
Contributor
|
The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).
|
Member
Author
Scan report result examplesSkill reportSkills imported from https://github.com/anthropics/skills/tree/main/skills/claude-api "scanReports": [
{
"analyzers": [
"behavioral",
"bytecode",
"pipeline",
"static",
"trigger"
],
"annotations": null,
"findings": [
{
"category": "",
"location": "",
"message": "[SOCIAL_ENG_ANTHROPIC_IMPERSONATION] social_engineering: Skill name or description contains 'Anthropic', suggesting official affiliation",
"remediation": "",
"rule_id": "",
"severity": "SEVERITY_MEDIUM"
},
{
"category": "",
"location": "",
"message": "[MANIFEST_DESCRIPTION_TOO_LONG] policy_violation: Skill description is 1068 characters; Agent skills limit the `description` field to 1024 characters.",
"remediation": "",
"rule_id": "",
"severity": "SEVERITY_INFO"
},
{
"category": "",
"location": "",
"message": "[MDBLOCK_PYTHON_SUBPROCESS] command_injection: Code block in shared/token-counting.md at line 50 contains potentially dangerous Python code.",
"remediation": "",
"rule_id": "",
"severity": "SEVERITY_MEDIUM"
}
],
"is_safe": true,
"max_severity": "SEVERITY_MEDIUM",
"scanned_at": "2026-07-06T11:20:16Z",
"scanner_type": "SCANNER_TYPE_SKILL",
"scanner_version": "2.0.12"
}
]MCP reportRecord with name "scanReports": [
{
"analyzers": [
"behavioral"
],
"annotations": null,
"findings": [],
"is_safe": true,
"max_severity": "SEVERITY_NONE",
"scanned_at": "2026-07-06T11:20:33Z",
"scanner_type": "SCANNER_TYPE_MCP",
"scanner_version": ""
}
] |
This was
linked to
issues
Jul 6, 2026
ramizpolic
approved these changes
Jul 6, 2026
Signed-off-by: Catarina Paralta <[email protected]>
Signed-off-by: Catarina Paralta <[email protected]>
paralta
force-pushed
the
feat/scan-db-reconciler
branch
from
July 6, 2026 12:45
890716b to
08ad7ff
Compare
This was referenced Jul 7, 2026
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.
This PR introduces end-to-end security scanning for records in the directory. A new reconciler task periodically runs
mcp-scannerandskill-scanneragainst unscanned records, persisting each scanner's result both as an OCI referrer (full report with findings) and as a denormalizedscan_reportsDB row (for efficient search queries). The server also upserts the DB row immediately when aScanReportreferrer is pushed directly via the API, so the search index reflects external scan results without waiting for the next reconciler cycle.Two new search filters are exposed on
dirctl search:--safe(all scanners reportedis_safe=true, analogous to--trustedfor signatures) and--scan-severity <threshold>(max severity ≥ the given level). There is intentionally no bare "has been scanned" filter — absence of a scan result is not semantically meaningful in the same way as a clean or dirty result.dirctl pull --scan-reportfetches the full scan reports for a record.scan_reportstable uses a composite primary key(record_cid, scanner_type)so each runner's result is tracked independently — a record can be safe per MCP and unsafe per skill simultaneously.mcp-scanner,skill-scanner) are installed viauvand added toTaskfile.deps.ymlas shared tasks; the daemon config enables the scan task by default.