https://www.brainiac.software/api/v1/appsec-config/secrets-scan$0.04 USDCScan files for secrets with gitleaks rules
Find secrets in text or diffs using vendored gitleaks rules with redaction.
Body
| Field | Required | Notes |
|---|---|---|
files | Yes | array; Array |
mode | No | string; One of: text, diff; Default: "text" |
allowlistPaths | No | array; Default: []; Array |
includeLowEntropy | No | boolean; Default: false |
Request exampleJSON
{
"files": [
{
"path": "deploy.env",
"content": "# deploy config\nAWS_ID=AKIAZ7Q3XVJ5RK2MWN4T\nDOCS_SAMPLE=AKIAIOSFODNN7EXAMPLE\nexport GH=ghp_R8vK2mQ9xT4wL7pZ3nB6cY1dF5hJ0sA2eU4g\nSTRIPE=sk_test_aaaaaaaaaaaaaaaa\n"
}
],
"mode": "text",
"allowlistPaths": [],
"includeLowEntropy": false
}Response exampleJSON
{
"findings": [
{
"ruleId": "aws-access-token",
"severity": "high",
"path": "deploy.env",
"line": 2,
"column": 8,
"redacted": "AKIA…4T",
"entropy": 4.1219,
"sha256": "3f961ca1ee76c2940a93ecef02071abba31e33959fb1273033680f7fa712648e"
},
{
"ruleId": "github-pat",
"severity": "high",
"path": "deploy.env",
"line": 4,
"column": 11,
"redacted": "ghp_…4g",
"entropy": 5.0719,
"sha256": "003b6e5548ef9b12dbcd28505d8a42a68a8dadfef406827ed169f05277f4be51"
}
],
"suppressed": [
{
"ruleId": "aws-access-token",
"path": "deploy.env",
"reason": "allowlist",
"redacted": "AKIA…LE"
}
],
"rulesVersion": "gitleaks.toml@5f6ec56cfa6f8c67648d863582c7ae2f206d5c1c",
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
},
{
"source": "gitleaks default rules (MIT)",
"url": "https://github.com/gitleaks/gitleaks",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/secrets-scan" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"files": [
{
"path": "deploy.env",
"content": "# deploy config\nAWS_ID=AKIAZ7Q3XVJ5RK2MWN4T\nDOCS_SAMPLE=AKIAIOSFODNN7EXAMPLE\nexport GH=ghp_R8vK2mQ9xT4wL7pZ3nB6cY1dF5hJ0sA2eU4g\nSTRIPE=sk_test_aaaaaaaaaaaaaaaa\n"
}
],
"mode": "text",
"allowlistPaths": [],
"includeLowEntropy": false
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/github-actions-audit$0.03 USDCAudit GitHub Actions workflows
Find injection, pinning, permission and pull_request_target risks.
Body
| Field | Required | Notes |
|---|---|---|
files | Yes | array; Array |
Request exampleJSON
{
"files": [
{
"path": ".github/workflows/pr.yml",
"content": "on: pull_request_target\npermissions: write-all\njobs:\n build:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n ref: ${{ github.event.pull_request.head.sha }}\n - uses: some-org/lint-action@main\n - run: echo \"${{ github.event.pull_request.title }}\"\n - run: echo ${{ secrets.NPM_TOKEN }}\n"
}
]
}Response exampleJSON
{
"findings": [
{
"ruleId": "GHA004-permissions-write-all",
"severity": "high",
"path": ".github/workflows/pr.yml",
"line": 2,
"column": 1,
"message": "permissions: write-all",
"reference": "https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions"
},
{
"ruleId": "GHA003-unpinned-action",
"severity": "low",
"path": ".github/workflows/pr.yml",
"line": 7,
"column": 1,
"message": "actions/checkout@v4 (first-party) is pinned to a tag, not a commit SHA",
"reference": "GitHub Docs"
},
"…"
],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/github-actions-audit" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"files": [
{
"path": ".github/workflows/pr.yml",
"content": "on: pull_request_target\npermissions: write-all\njobs:\n build:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n ref: ${{ github.event.pull_request.head.sha }}\n - uses: some-org/lint-action@main\n - run: echo \"${{ github.event.pull_request.title }}\"\n - run: echo ${{ secrets.NPM_TOKEN }}\n"
}
]
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/gitlab-ci-audit$0.03 USDCAudit GitLab CI configuration
Flag unpinned images, remote includes, secrets and dind risks.
Body
| Field | Required | Notes |
|---|---|---|
content | Yes | string |
requireDigest | No | boolean; Default: false |
Request exampleJSON
{
"content": "image: node:latest\ninclude:\n - remote: 'https://example.com/ci.yml'\nvariables:\n DEPLOY_TOKEN: \"glpat-AbCdEfGhIjKlMnOpQrSt\"\nbuild:\n services:\n - docker:dind\n script:\n - echo $CI_COMMIT_MESSAGE | sh\n artifacts:\n paths: [\".env\"]\n"
}Response exampleJSON
{
"findings": [
{
"ruleId": "GLC001-image-unpinned",
"severity": "medium",
"line": 1,
"column": 1,
"path": ".gitlab-ci.yml",
"message": "image",
"reference": "GitLab CI"
},
{
"ruleId": "GLC002-remote-include",
"severity": "high",
"line": 3,
"column": 1,
"path": ".gitlab-ci.yml",
"message": "include: remote",
"reference": "GitLab CI"
},
"…"
],
"unresolvedIncludes": [
"https://example.com/ci.yml"
],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/gitlab-ci-audit" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"content": "image: node:latest\ninclude:\n - remote: 'https://example.com/ci.yml'\nvariables:\n DEPLOY_TOKEN: \"glpat-AbCdEfGhIjKlMnOpQrSt\"\nbuild:\n services:\n - docker:dind\n script:\n - echo $CI_COMMIT_MESSAGE | sh\n artifacts:\n paths: [\".env\"]\n"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/cloudformation-audit$0.04 USDCAudit CloudFormation templates
Flag public storage, open security groups, missing encryption and wildcard IAM.
Body
| Field | Required | Notes |
|---|---|---|
template | Yes | string |
Request exampleJSON
{
"template": "AWSTemplateFormatVersion: '2010-09-09'\nParameters:\n Open:\n Type: String\n Default: 0.0.0.0/0\nResources:\n Bucket:\n Type: AWS::S3::Bucket\n Properties:\n AccessControl: PublicRead\n SG:\n Type: AWS::EC2::SecurityGroup\n Properties:\n GroupDescription: x\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: 22\n ToPort: 22\n CidrIp: 0.0.0.0/0\n DB:\n Type: AWS::RDS::DBInstance\n Properties:\n Engine: mysql\n Policy:\n Type: AWS::IAM::ManagedPolicy\n Properties:\n PolicyDocument:\n Statement:\n - Effect: Allow\n Action: '*'\n Resource: '*'\n"
}Response exampleJSON
{
"findings": [
{
"ruleId": "CFN001-s3-public-acl",
"resource": "Bucket",
"severity": "high",
"path": "Bucket",
"line": 1,
"column": 1,
"message": "Public ACL",
"reference": "AWS S3",
"conditional": false
},
{
"ruleId": "CFN002-s3-no-public-access-block",
"resource": "Bucket",
"severity": "medium",
"path": "Bucket",
"line": 1,
"column": 1,
"message": "missing public access block",
"reference": "AWS S3",
"conditional": false
},
"…"
],
"unresolved": [],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/cloudformation-audit" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"template": "AWSTemplateFormatVersion: '2010-09-09'\nParameters:\n Open:\n Type: String\n Default: 0.0.0.0/0\nResources:\n Bucket:\n Type: AWS::S3::Bucket\n Properties:\n AccessControl: PublicRead\n SG:\n Type: AWS::EC2::SecurityGroup\n Properties:\n GroupDescription: x\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: 22\n ToPort: 22\n CidrIp: 0.0.0.0/0\n DB:\n Type: AWS::RDS::DBInstance\n Properties:\n Engine: mysql\n Policy:\n Type: AWS::IAM::ManagedPolicy\n Properties:\n PolicyDocument:\n Statement:\n - Effect: Allow\n Action: '*'\n Resource: '*'\n"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/aws-iam-policy-analyze$0.03 USDCAnalyse AWS IAM policy documents
Find wildcards, NotAction pitfalls, privilege-escalation actions and public principals.
Body
| Field | Required | Notes |
|---|---|---|
policy | Yes | — |
policyType | No | string; One of: identity, resource, trust; Default: "identity" |
Request exampleJSON
{
"policy": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iam:PassRole",
"ec2:RunInstances"
],
"Resource": "*"
},
{
"Effect": "Allow",
"NotAction": "iam:*",
"Resource": "*"
},
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-bucket/*"
},
{
"Effect": "Allow",
"Action": "iam:CreatePolicyVersion",
"Resource": "*"
}
]
},
"policyType": "resource"
}Response exampleJSON
{
"findings": [
{
"ruleId": "IAM-NOTACTION-ALLOW",
"statement": 1,
"severity": "high",
"detail": "Allow + NotAction grants every action outside iam:* on all resources",
"reference": "AWS IAM"
},
{
"ruleId": "IAM-PUBLIC-PRINCIPAL",
"statement": 2,
"severity": "high",
"reference": "AWS IAM"
},
"…"
],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/aws-iam-policy-analyze" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"policy": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iam:PassRole",
"ec2:RunInstances"
],
"Resource": "*"
},
{
"Effect": "Allow",
"NotAction": "iam:*",
"Resource": "*"
},
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-bucket/*"
},
{
"Effect": "Allow",
"Action": "iam:CreatePolicyVersion",
"Resource": "*"
}
]
},
"policyType": "resource"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/gcp-iam-binding-analyze$0.03 USDCAnalyse GCP IAM policy bindings
Flag basic roles, public members and service-account impersonation.
Body
| Field | Required | Notes |
|---|---|---|
policy | Yes | object; Object |
serviceAccountPolicies | No | object |
Request exampleJSON
{
"policy": {
"bindings": [
{
"role": "roles/editor",
"members": [
"user:dev@example.com"
]
},
{
"role": "roles/storage.objectViewer",
"members": [
"allUsers"
]
},
{
"role": "roles/iam.serviceAccountTokenCreator",
"members": [
"user:ci@example.com"
]
},
{
"role": "roles/owner",
"members": [
"serviceAccount:app@p.iam.gserviceaccount.com"
],
"condition": {
"title": "temp",
"expression": "request.time < timestamp('2026-12-01T00:00:00Z')"
}
}
]
}
}Response exampleJSON
{
"findings": [
{
"ruleId": "GCP-BASIC-ROLE",
"role": "roles/editor",
"members": [
"user:dev@example.com"
],
"severity": "high",
"reference": "Google Cloud IAM"
},
{
"ruleId": "GCP-PUBLIC-MEMBER",
"role": "roles/storage.objectViewer",
"members": [
"allUsers"
],
"severity": "high",
"reference": "Google Cloud IAM"
},
"…"
],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/gcp-iam-binding-analyze" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"policy": {
"bindings": [
{
"role": "roles/editor",
"members": [
"user:dev@example.com"
]
},
{
"role": "roles/storage.objectViewer",
"members": [
"allUsers"
]
},
{
"role": "roles/iam.serviceAccountTokenCreator",
"members": [
"user:ci@example.com"
]
},
{
"role": "roles/owner",
"members": [
"serviceAccount:app@p.iam.gserviceaccount.com"
],
"condition": {
"title": "temp",
"expression": "request.time < timestamp('2026-12-01T00:00:00Z')"
}
}
]
}
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/jwt-inspect$0.03 USDCInspect JWTs for weak crypto and claims
Decode JWTs, flag alg:none, weak HMAC secrets and lifetime issues.
Body
| Field | Required | Notes |
|---|---|---|
token | Yes | string |
now | No | string |
maxLifetimeSeconds | No | integer |
expectedAudience | No | string | null |
publicKeyPem | No | string |
Request exampleJSON
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEyMyIsImlhdCI6MTc2NzIyNTYwMCwiZXhwIjoxNzY3MzEyMDAwfQ.AbHqNHstAu3Ejvjp6sSIjN_Q96ehum-riC8M7eO98a4",
"now": "2026-01-01T12:00:00Z",
"maxLifetimeSeconds": 3600,
"expectedAudience": null
}Response exampleJSON
{
"header": {
"alg": "HS256",
"typ": "JWT"
},
"payload": {
"sub": "user-123",
"iat": 1767225600,
"exp": 1767312000
},
"findings": [
{
"ruleId": "JWT-WEAK-SECRET",
"severity": "critical",
"message": "HS256 signature verifies with a known public secret",
"secretHint": "se…et",
"listLine": 40,
"reference": "SecLists"
},
{
"ruleId": "JWT-NO-AUD",
"severity": "low"
},
"…"
],
"expired": false,
"notYetValid": false,
"signatureChecked": true,
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
},
{
"source": "SecLists scraped-JWT-secrets.txt (MIT)",
"url": "https://github.com/danielmiessler/SecLists",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/jwt-inspect" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEyMyIsImlhdCI6MTc2NzIyNTYwMCwiZXhwIjoxNzY3MzEyMDAwfQ.AbHqNHstAu3Ejvjp6sSIjN_Q96ehum-riC8M7eO98a4",
"now": "2026-01-01T12:00:00Z",
"maxLifetimeSeconds": 3600,
"expectedAudience": null
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/regex-redos-check$0.02 USDCDetect ReDoS risk in a regular expression
Check a JavaScript regex for catastrophic backtracking with recheck.
Body
| Field | Required | Notes |
|---|---|---|
pattern | Yes | string |
flags | No | string; Default: "" |
flavour | No | string; One of: javascript; Default: "javascript" |
Request exampleJSON
{
"pattern": "^(a+)+$",
"flags": "",
"flavour": "javascript"
}Response exampleJSON
{
"status": "vulnerable",
"complexity": {
"type": "exponential",
"summary": "exponential",
"isFuzz": false
},
"attack": {
"pumps": [
{
"prefix": "a",
"pump": "a",
"bias": 0
}
],
"suffix": "\u0000",
"base": 31,
"string": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\u0000",
"pattern": "'a' + 'a'.repeat(31) + '\\x00'"
},
"checker": "automaton",
"engine": "recheck 4.6.2",
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
},
{
"source": "recheck (MIT)",
"url": "https://github.com/MakeNowJust/recheck",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/regex-redos-check" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"pattern": "^(a+)+$",
"flags": "",
"flavour": "javascript"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/injection-sink-scan$0.03 USDCScan a file for injection sinks
Lightweight single-file taint scan for SQL, command and XSS sinks.
Body
| Field | Required | Notes |
|---|---|---|
language | Yes | string; One of: javascript, typescript, python |
path | No | string; Default: "input" |
content | Yes | string |
Request exampleJSON
{
"language": "javascript",
"path": "routes/user.js",
"content": "app.get('/u', (req, res) => {\n const id = req.query.id;\n db.query(\"SELECT * FROM users WHERE id = \" + id);\n db.query('SELECT * FROM users WHERE id = ?', [id]);\n exec(`ping ${req.body.host}`);\n res.send('<p>' + req.query.name + '</p>');\n});\n"
}Response exampleJSON
{
"findings": [
{
"ruleId": "INJ-CMD",
"line": 5,
"severity": "critical",
"source": "req.body",
"sink": "exec",
"path": "routes/user.js",
"column": 1,
"message": "command injection",
"reference": "CWE-78"
},
{
"ruleId": "INJ-XSS-RESPONSE",
"line": 6,
"severity": "medium",
"source": "req.query",
"sink": "res.send",
"path": "routes/user.js",
"column": 1,
"message": "xss",
"reference": "CWE-79"
}
],
"scope": "single_file",
"caveat": "pattern-based; false positives and negatives expected",
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/injection-sink-scan" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"language": "javascript",
"path": "routes/user.js",
"content": "app.get('/u', (req, res) => {\n const id = req.query.id;\n db.query(\"SELECT * FROM users WHERE id = \" + id);\n db.query('SELECT * FROM users WHERE id = ?', [id]);\n exec(`ping ${req.body.host}`);\n res.send('<p>' + req.query.name + '</p>');\n});\n"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/openapi-security-audit$0.04 USDCAudit OpenAPI 3.x security design
OWASP API Top 10 style checks on an OpenAPI document.
Body
| Field | Required | Notes |
|---|---|---|
spec | Yes | string |
Request exampleJSON
{
"spec": "openapi: 3.0.3\ninfo: { title: t, version: '1' }\nservers: [{ url: 'http://api.example.com' }]\npaths:\n /users/{id}:\n get:\n parameters:\n - { name: id, in: path, required: true, schema: { type: integer } }\n - { name: api_key, in: query, schema: { type: string } }\n responses: { '200': { description: ok } }\n /users:\n get:\n security: [{ bearer: [] }]\n responses:\n '200':\n description: ok\n content:\n application/json:\n schema: { type: array, items: { type: string } }\ncomponents:\n securitySchemes:\n bearer: { type: http, scheme: bearer }\n"
}Response exampleJSON
{
"findings": [
{
"ruleId": "OAS-NO-429",
"owasp": "API4:2023",
"path": "/users",
"method": "get",
"severity": "low",
"message": "no 429",
"reference": "OWASP API4:2023"
},
{
"ruleId": "OAS-NO-PAGINATION",
"owasp": "API4:2023",
"path": "/users",
"method": "get",
"severity": "low",
"message": "no pagination",
"reference": "OWASP API4:2023"
},
"…"
],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/openapi-security-audit" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"spec": "openapi: 3.0.3\ninfo: { title: t, version: '1' }\nservers: [{ url: 'http://api.example.com' }]\npaths:\n /users/{id}:\n get:\n parameters:\n - { name: id, in: path, required: true, schema: { type: integer } }\n - { name: api_key, in: query, schema: { type: string } }\n responses: { '200': { description: ok } }\n /users:\n get:\n security: [{ bearer: [] }]\n responses:\n '200':\n description: ok\n content:\n application/json:\n schema: { type: array, items: { type: string } }\ncomponents:\n securitySchemes:\n bearer: { type: http, scheme: bearer }\n"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/password-policy-evaluate$0.02 USDCEvaluate a password policy vs NIST
Check policy fields and optional samples against NIST SP 800-63B-4.
Body
| Field | Required | Notes |
|---|---|---|
policy | Yes | object; Object |
samples | No | array; Default: []; Array |
Request exampleJSON
{
"policy": {
"minLength": 8,
"maxLength": 32,
"usedAsSingleFactor": true,
"compositionRules": [
"uppercase",
"digit",
"symbol"
],
"periodicExpiryDays": 90,
"blocklistCheck": false,
"allowsUnicode": false,
"allowsSpace": false,
"hintsAllowed": false,
"securityQuestions": true
},
"samples": [
"Password1!",
"correct horse battery staple"
]
}Response exampleJSON
{
"findings": [
{
"ruleId": "NIST-MINLEN-SINGLE",
"requirement": "SHALL",
"detail": "single-factor passwords must be at least 15 characters; policy allows 8"
},
{
"ruleId": "NIST-MAXLEN",
"requirement": "SHOULD",
"detail": "permit at least 64 characters; policy max 32"
},
"…"
],
"samples": [
{
"index": 0,
"length": 10,
"inBlocklist": true,
"meetsPolicyLength": true
},
{
"index": 1,
"length": 28,
"inBlocklist": false,
"meetsPolicyLength": true
}
],
"source": "NIST SP 800-63B-4 §3.1.1.2 (final, 2025)",
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
},
{
"source": "NIST SP 800-63B-4",
"url": "https://pages.nist.gov/800-63-4/sp800-63b.html",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/password-policy-evaluate" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"policy": {
"minLength": 8,
"maxLength": 32,
"usedAsSingleFactor": true,
"compositionRules": [
"uppercase",
"digit",
"symbol"
],
"periodicExpiryDays": 90,
"blocklistCheck": false,
"allowsUnicode": false,
"allowsSpace": false,
"hintsAllowed": false,
"securityQuestions": true
},
"samples": [
"Password1!",
"correct horse battery staple"
]
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/sbom-generate$0.03 USDCGenerate an SBOM from a lockfile
Build CycloneDX or SPDX SBOMs from npm/PyPI/Go/Cargo lockfiles.
Body
| Field | Required | Notes |
|---|---|---|
lockfile | Yes | object; Object |
format | No | string; One of: cyclonedx-1.6-json, spdx-2.3-json; Default: "cyclonedx-1.6-json" |
Request exampleJSON
{
"lockfile": {
"type": "package-lock",
"content": "{\"name\":\"app\",\"version\":\"1.0.0\",\"lockfileVersion\":3,\"packages\":{\"\":{\"name\":\"app\",\"version\":\"1.0.0\",\"dependencies\":{\"@babel/core\":\"^7.24.0\"}},\"node_modules/@babel/core\":{\"version\":\"7.24.0\",\"resolved\":\"https://registry.npmjs.org/@babel/core/-/core-7.24.0.tgz\",\"license\":\"MIT\"}}}"
},
"format": "cyclonedx-1.6-json"
}Response exampleJSON
{
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"serialNumber": "urn:uuid:3042101c-6347-fadd-ba0d-bbe9bb093365",
"metadata": {
"timestamp": "2026-11-15T00:38:45.863Z",
"component": {
"type": "application",
"name": "app",
"version": "1.0.0"
}
},
"components": [
{
"type": "library",
"bom-ref": "pkg:npm/%40babel/core@7.24.0",
"name": "core",
"group": "@babel",
"version": "7.24.0",
"purl": "pkg:npm/%40babel/core@7.24.0",
"licenses": [
{
"license": {
"id": "MIT"
}
}
]
}
],
"dependencies": [
{
"ref": "app",
"dependsOn": [
"pkg:npm/%40babel/core@7.24.0"
]
}
],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/sbom-generate" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"lockfile": {
"type": "package-lock",
"content": "{\"name\":\"app\",\"version\":\"1.0.0\",\"lockfileVersion\":3,\"packages\":{\"\":{\"name\":\"app\",\"version\":\"1.0.0\",\"dependencies\":{\"@babel/core\":\"^7.24.0\"}},\"node_modules/@babel/core\":{\"version\":\"7.24.0\",\"resolved\":\"https://registry.npmjs.org/@babel/core/-/core-7.24.0.tgz\",\"license\":\"MIT\"}}}"
},
"format": "cyclonedx-1.6-json"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/nginx-config-audit$0.03 USDCAudit nginx configuration
Find weak TLS, alias traversal, open proxy and missing headers.
Body
| Field | Required | Notes |
|---|---|---|
content | Yes | string |
Request exampleJSON
{
"content": "server {\n listen 443 ssl;\n ssl_protocols TLSv1 TLSv1.2;\n location /static {\n alias /var/www/static/;\n }\n location /proxy/ {\n resolver 8.8.8.8;\n proxy_pass http://$arg_host;\n }\n}\n"
}Response exampleJSON
{
"findings": [
{
"ruleId": "NGX-MISSING-HEADER",
"line": 1,
"severity": "low",
"detail": "X-Content-Type-Options",
"path": "nginx.conf",
"column": 1,
"message": "missing header",
"reference": "OWASP"
},
{
"ruleId": "NGX-MISSING-HEADER",
"line": 1,
"severity": "low",
"detail": "Content-Security-Policy",
"path": "nginx.conf",
"column": 1,
"message": "missing header",
"reference": "OWASP"
},
"…"
],
"unresolvedIncludes": [],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/nginx-config-audit" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"content": "server {\n listen 443 ssl;\n ssl_protocols TLSv1 TLSv1.2;\n location /static {\n alias /var/www/static/;\n }\n location /proxy/ {\n resolver 8.8.8.8;\n proxy_pass http://$arg_host;\n }\n}\n"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/apache-config-audit$0.03 USDCAudit Apache httpd configuration
Find weak TLS, directory listing, TRACE and missing hardening.
Body
| Field | Required | Notes |
|---|---|---|
content | Yes | string |
kind | No | string; One of: httpd.conf, htaccess; Default: "httpd.conf" |
Request exampleJSON
{
"content": "ServerSignature On\nServerTokens Full\n<Directory /var/www/html>\n Options Indexes FollowSymLinks\n</Directory>\nSSLProtocol all -SSLv3\nTraceEnable On\n",
"kind": "httpd.conf"
}Response exampleJSON
{
"findings": [
{
"ruleId": "APA-SERVER-SIGNATURE",
"line": 1,
"severity": "low",
"path": "httpd.conf",
"column": 1,
"message": "ServerSignature On",
"reference": "Apache docs"
},
{
"ruleId": "APA-SERVER-TOKENS",
"line": 2,
"severity": "low",
"path": "httpd.conf",
"column": 1,
"message": "ServerTokens Full",
"reference": "Apache docs"
},
"…"
],
"unknownDirectives": [],
"notes": [
"OpenSSL build or security level may still refuse TLS 1.0/1.1 at runtime."
],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/apache-config-audit" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"content": "ServerSignature On\nServerTokens Full\n<Directory /var/www/html>\n Options Indexes FollowSymLinks\n</Directory>\nSSLProtocol all -SSLv3\nTraceEnable On\n",
"kind": "httpd.conf"
}
JSONhttps://www.brainiac.software/api/v1/appsec-config/oauth-client-audit$0.02 USDCAudit OAuth/OIDC client registration
Check client settings against RFC 9700 security BCP.
Body
| Field | Required | Notes |
|---|---|---|
client | Yes | object; Object |
maxAccessTokenLifetimeSeconds | No | integer |
broadScopes | No | array; Array |
Request exampleJSON
{
"client": {
"clientType": "public",
"grantTypes": [
"implicit",
"authorization_code",
"password",
"refresh_token"
],
"responseTypes": [
"token",
"code"
],
"redirectUris": [
"https://app.example.com/*",
"http://app.example.com/cb",
"http://127.0.0.1:8080/cb"
],
"pkceRequired": false,
"pkceMethods": [
"plain"
],
"refreshTokenRotation": false,
"senderConstrainedRefreshTokens": false,
"accessTokenLifetimeSeconds": 86400,
"scopes": [
"openid",
"admin"
]
},
"maxAccessTokenLifetimeSeconds": 3600,
"broadScopes": [
"admin",
"*"
]
}Response exampleJSON
{
"findings": [
{
"ruleId": "OAUTH-IMPLICIT",
"severity": "high",
"reference": "RFC 9700 §2.1.2 (SHOULD NOT)"
},
{
"ruleId": "OAUTH-ROPC",
"severity": "critical",
"reference": "RFC 9700 §2.4 (MUST NOT)"
},
"…"
],
"sources": [
{
"source": "Caller-supplied files or snippets processed locally",
"url": "https://www.brainiac.software/api/v1/appsec-config",
"retrievedAt": "2026-11-14",
"status": "ok"
},
{
"source": "RFC 9700 OAuth 2.0 Security BCP",
"url": "https://www.rfc-editor.org/rfc/rfc9700.html",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determination…",
"Nothing is cloned, fetched or executed at request time."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/appsec-config/oauth-client-audit" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"client": {
"clientType": "public",
"grantTypes": [
"implicit",
"authorization_code",
"password",
"refresh_token"
],
"responseTypes": [
"token",
"code"
],
"redirectUris": [
"https://app.example.com/*",
"http://app.example.com/cb",
"http://127.0.0.1:8080/cb"
],
"pkceRequired": false,
"pkceMethods": [
"plain"
],
"refreshTokenRotation": false,
"senderConstrainedRefreshTokens": false,
"accessTokenLifetimeSeconds": 86400,
"scopes": [
"openid",
"admin"
]
},
"maxAccessTokenLifetimeSeconds": 3600,
"broadScopes": [
"admin",
"*"
]
}
JSON