Go to example tasks

Find secrets in a .env or config file: paste it and scan

Paste the text of a .env file, a config file, a log or any snippet and find the API keys, tokens and private keys in it with Betterleaks' 200+ rules, nothing installed. The example holds fake values; paste yours to check it before you commit or share it.

Try for free
Betterleaks Cloud - GitHub & S3 Secret Scanner
Betterleaks Cloud - GitHub & S3 Secret Scanneranshumanatrey/betterleaks-cloud
Rule (RuleID)
Rule description (Description)
Secret value (Secret)
Matched text (Match)
+10 fields
Text
Number
Boolean
List
Object

Input

Text to scan (stdin_content):# demo .env scanned by Betterleaks (stdin mode) DB_HOST=db.internal.example.com GITHUB_TOKEN=ghp_A1b2C3d4E5f6G7h8I9j0K1l2M3n4O5p6Q7r8 -----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDfakefakefakeKEY -----END PRIVATE KEY-----
Verify secrets live (validation):false

Output fields

Rule (RuleID)
Rule description (Description)
Secret value (Secret)
Matched text (Match)
Live? (ValidationStatus)
Line (StartLine)
End line (EndLine)
Finding ID (Fingerprint)
Rule tags (Tags)
Capture groups (CaptureGroups)
Extra details (Attributes)
Source text (Fragment)
Validation reason (ValidationReason)
Validation details (ValidationMeta)

How it works

Sign up on Apify or log in

The Betterleaks Cloud - GitHub & S3 Secret Scanner Actor is ready to run with the inputs already set for "Find secrets in a .env or config file: paste it and scan". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Find secrets in a .env or config file: paste it and scan" task

The Betterleaks Cloud - GitHub & S3 Secret Scanner Actor will start running based on the input automatically. You can also change all the input fields, like text to scan (stdin_content) and verify secrets live (validation), to match your specific use case.

Receive the "Find secrets in a .env or config file: paste it and scan" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as rule (ruleid), rule description (description), secret value (secret), and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Find secrets in a .env or config file: paste it and scan" task via API.

Image

Integrate "Find secrets in a .env or config file: paste it and scan" into your workflow

Connect "Find secrets in a .env or config file: paste it and scan" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay