Platform/Secrets
Secrets: keys and passwords do not belong in code
Finds keys, passwords and tokens in code, configs and key files before release.
config/.env3 secrets
-
DB_HOST=10.0.4.12 -
DB_USER=bank_app -
DB_PASSWORD=••••••••••••password -
JWT_SECRET=••••••••••••••••JWT secret -
LOG_LEVEL=info -
PAYMENT_KEY=••••••••••••payment service key
01How it works
From code to decision
- 01Filescode, configs, .env and keystores
- 02Formatkeys of known services are recognized by format and checksum
- 03Contextthe key name, file type and path filter out random strings
- 04Findinglocation and mask; the value itself is hidden
- 05Decisionrotate the key and remove it from code
02In the platform
How the platform handles a secret
- value hidden
- The list shows a mask. Admin, head of security and AppSec can reveal the value.
- reveal is logged
- Every reveal of a value is recorded in the audit log: who and when.
- no live verification
- The key is not sent to the service for verification. Only the format and checksum in the string itself are checked.
Vulnerabilities · payments-api group by by finding
AWS cloud keyconfig/.env:7 · AKIA••••••••••••
confirmed NCA RK digital signature keydeploy/keys/GOSTKNCA_•••.p12
needs triage Password in a database connection stringsrc/main/resources/application.yml:12
needs triage GitLab tokenci/deploy.sh:31 · glpat-••••••••
needs triage JWT secrettest/fixtures/auth.json:4
dismissed exampleseverity · basis · status
03Secrets
What we look for and where
- Where we look
- In code, configs, .env files and keystores.
- One finding per secret
- One value found in several places and repositories is merged into a single record.
- Tests and examples
- Secrets in tests and examples are always shown.
- Local specifics
- NCA RK digital signature keys, passwords in 1C code and Oracle scripts.
- Customer data
- Payment card numbers and IINs in test data and dumps. A separate group, not counted as vulnerabilities.
Types
passwordstokenscloud keysAI service keysdatabase connection stringsJWT secretskeystoresNCA RK digital signature keys
Clouds
AWSGoogle CloudAzureYandex CloudDigitalOceanAlibaba Cloud
Development and DevOps
GitLabGitHubJenkinsNexusSonarQubeKubernetesHashiCorp VaultTerraform CloudDocker HubnpmPyPINuGet
AI services
OpenAIAnthropicMistral AIDeepSeekCohereGroqHugging FaceAmazon Bedrock
Databases and keys
JDBC and ODBCOracleADO.NETPEM and OpenSSH.p12, .pfx, .jks
Payments and messengers
StripeYooKassaPayPal BraintreeTelegramSlackBitrix24
Kazakhstan
NCA RK digital signature keysIINpayment card numbers
04Perimeter
Inside your network
Inside your perimeter
- No internet. The search runs on your server. A detected key is not sent anywhere.
- The value is not stored in the result. A finding records the location, a mask and a fingerprint of the value.
- What was not checked. Binary and oversized files are skipped with a note.