Amazon CodeGuru Security is in preview release and is subject to change.
Secrets detection
CodeGuru Security integrates with AWS Secrets Manager to use a secrets detector that finds unprotected secrets in your code and text files. Secrets detection is automatically enabled in scans, so you don't need to turn it on.
The secrets detector searches for hardcoded passwords, database connection strings, user names, and more. When an unprotected secret is found during a code scan, CodeGuru Security generates a finding with a suggested remediation that tells you about the unprotected secret. To protect secrets, you can store them in AWS Secrets Manager. For more information, see Move hardcoded secrets to AWS Secrets Manager.
Supported character types for secrets detection
CodeGuru Security can detect secrets in English. Valid characters include alphanumeric characters and ASCII special characters.
Supported file types for secrets detection
The secrets detector finds unprotected secrets the following file types with a maximum file size of 100 KB.
-
Class files (*.class)
-
Config files (*.config, *.cfg, *.conf, *.cnf, *.cf)
-
C# files (*.cs)
-
Environment files (*.env)
-
Go files (*.go)
-
HTML files (*.html)
-
Initialization files (*.ini)
-
Java files (*.java)
-
JavaScript files (*.js, *.mjs, *.cjs)
-
JSON files (*.json)
-
Jakarta Server Pages files (*.jsp)
-
Jupyter Notebook files (*.ipynb)
-
Key files (*.key)
-
Markdown files (*.md)
-
Privacy Enhanced Mail files (*.pem)
-
Properties files (*.properties)
-
Property List files (*.plist)
-
Python files (*.py)
-
reStructuredText files (*.rst)
-
Ruby files (*.rb)
-
Terraform files (*.tf, *.hcl)
-
Text files (*.txt, *.text)
-
TypeScript files (*.ts)
-
TOML files (*.toml)
-
XML files (*.xml)
-
YAML files (*.yml, *.yaml)
Types of secrets detected by CodeGuru Security
CodeGuru Security detects unprotected usernames, passwords, RSA keys, and the following secrets.
Provider | Secrets detected |
---|---|
Amazon Web Services (AWS) |
|
Atlassian |
|
Databricks |
|
Datadog |
|
GitHub |
|
Intercom |
|
Mailchimp |
|
Mailgun |
|
Salesforce |
|
SendGrid |
|
Shopify |
|
Slack |
|
Stripe |
|
Tableau |
|
Telegram |
|
Twilio |
|