Fix: AWS-Doku-Beispielkeys lösen SECRET-001 nicht mehr aus - #21
Merged
Merged
Conversation
Strukturelle Lösung statt Literal-Liste: Access-Key-IDs auf '...EXAMPLE' werden vor dem Matching neutralisiert. Eine Liste konkreter Beispiel-Keys hätte selbst wie ein Secret ausgesehen und die veröffentlichte v0-Action dazu gebracht, diese Datei zu flaggen (CI-Smoke-Test rot).
agentguard-dev
force-pushed
the
fix/secret-001-aws-doc-example-keys
branch
from
September 11, 2026 20:55
ce7da70 to
0c18264
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.
Gefunden durch den Outreach-Scan der Welle 2 (120 Repos, 3 Findings, 3x False Positive).
Der FP
robotocore/robotocore(331 Sterne, AWS-Emulator) wurde mit SECRET-001 critical geflaggt — die Treffer waren die Dokumentations-Beispielwerte aus den offiziellen AWS-Docs in derAGENTS.md:AKIAIOSFODNN7EXAMPLE(Beispiel-Access-Key-ID)aws_secret_access_key="test", Dummy-Account123456789012Das trifft genau die Zielgruppe: Agent-Configs dokumentieren häufig Cloud-Setup.
Der Fix
Gezielte Allowlist für AWS-Doku-Beispielkeys (
AKIAIOSFODNN7EXAMPLE,AKIAI44QH8DHBEXAMPLE), die vor dem Pattern-Matching neutralisiert werden. Die Entfernung berührt keine Zeilenumbrüche — Zeilennummern bleiben korrekt. Die Regel selbst bleibt unverändert scharf.Verifikation
AKIA+ 16 Zeichen) wird weiterhin critical, Exit 2 geflaggt