Skip to content

Find, verify, and analyze leaked credentials

Include key info for analyze (#4686)

Bill Rich5e900a52f951
diff --git a/pkg/detectors/aws/access_keys/accesskey.go b/pkg/detectors/aws/access_keys/accesskey.go
index 99eb2fe73..7c8439f8b 100644
--- a/pkg/detectors/aws/access_keys/accesskey.go
+++ b/pkg/detectors/aws/access_keys/accesskey.go
@@ -154,6 +154,10 @@ func (s scanner) FromData(ctx context.Context, verify bool, data []byte) (result
ExtraData: map[string]string{
"resource_type": aws.ResourceTypes[idMatch[:4]],
},
+ AnalysisInfo: map[string]string{
+ "access_key_id": idMatch,
+ "secret_access_key": secretMatch,
+ },
}
// Decode the AWS Account ID.