# Application & Pipeline Security Checks API > Secrets scanning (gitleaks rules), GitHub Actions and GitLab CI audits, CloudFormation and IAM/GCP binding analysis, JWT inspect, ReDoS check, injection sink scan, OpenAPI security audit, password policy vs NIST, SBOM from lockfiles, nginx/Apache config audits and OAuth client checks — on caller-supplied files only. Each paid operation uses a fixed USDC price on Base with the x402 exact scheme. Unpaid GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result. HTTP 4xx/5xx are not charged. Coverage bodies with status complete, partial, or failed all return HTTP 200 and are charged at the full listed price. Settled 2xx responses include a payment-response header; 4xx/5xx do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/appsec-config - Docs: https://www.brainiac.software/api/appsec-config/docs - OpenAPI: https://www.brainiac.software/api/appsec-config/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/appsec-config/secrets-scan $0.04 USDC. Find secrets in text or diffs using vendored gitleaks rules with redaction. Inputs: files, mode?, allowlistPaths?, includeLowEntropy? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-secrets-scan Example request: ```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 } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/github-actions-audit $0.03 USDC. Find injection, pinning, permission and pull_request_target risks. Inputs: files Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-github-actions-audit Example request: ```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" } ] } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/gitlab-ci-audit $0.03 USDC. Flag unpinned images, remote includes, secrets and dind risks. Inputs: content, requireDigest? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-gitlab-ci-audit Example request: ```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" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/cloudformation-audit $0.04 USDC. Flag public storage, open security groups, missing encryption and wildcard IAM. Inputs: template Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-cloudformation-audit Example request: ```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" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/aws-iam-policy-analyze $0.03 USDC. Find wildcards, NotAction pitfalls, privilege-escalation actions and public principals. Inputs: policy, policyType? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-aws-iam-policy-analyze Example request: ```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" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/gcp-iam-binding-analyze $0.03 USDC. Flag basic roles, public members and service-account impersonation. Inputs: policy, serviceAccountPolicies? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-gcp-iam-binding-analyze Example request: ```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')" } } ] } } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/jwt-inspect $0.03 USDC. Decode JWTs, flag alg:none, weak HMAC secrets and lifetime issues. Inputs: token, now?, maxLifetimeSeconds?, expectedAudience?, publicKeyPem? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-jwt-inspect Example request: ```json { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEyMyIsImlhdCI6MTc2NzIyNTYwMCwiZXhwIjoxNzY3MzEyMDAwfQ.AbHqNHstAu3Ejvjp6sSIjN_Q96ehum-riC8M7eO98a4", "now": "2026-01-01T12:00:00Z", "maxLifetimeSeconds": 3600, "expectedAudience": null } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/regex-redos-check $0.02 USDC. Check a JavaScript regex for catastrophic backtracking with recheck. Inputs: pattern, flags?, flavour? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-regex-redos-check Example request: ```json { "pattern": "^(a+)+$", "flags": "", "flavour": "javascript" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/injection-sink-scan $0.03 USDC. Lightweight single-file taint scan for SQL, command and XSS sinks. Inputs: language, path?, content Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-injection-sink-scan Example request: ```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('

' + req.query.name + '

');\n});\n" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/openapi-security-audit $0.04 USDC. OWASP API Top 10 style checks on an OpenAPI document. Inputs: spec Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-openapi-security-audit Example request: ```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" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/password-policy-evaluate $0.02 USDC. Check policy fields and optional samples against NIST SP 800-63B-4. Inputs: policy, samples? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-password-policy-evaluate Example request: ```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" ] } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/sbom-generate $0.03 USDC. Build CycloneDX or SPDX SBOMs from npm/PyPI/Go/Cargo lockfiles. Inputs: lockfile, format? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-sbom-generate Example request: ```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" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/nginx-config-audit $0.03 USDC. Find weak TLS, alias traversal, open proxy and missing headers. Inputs: content Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-nginx-config-audit Example request: ```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" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/apache-config-audit $0.03 USDC. Find weak TLS, directory listing, TRACE and missing hardening. Inputs: content, kind? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-apache-config-audit Example request: ```json { "content": "ServerSignature On\nServerTokens Full\n\n Options Indexes FollowSymLinks\n\nSSLProtocol all -SSLv3\nTraceEnable On\n", "kind": "httpd.conf" } ``` Example response: ```json { "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." ] } ``` ### POST /api/v1/appsec-config/oauth-client-audit $0.02 USDC. Check client settings against RFC 9700 security BCP. Inputs: client, maxAccessTokenLifetimeSeconds?, broadScopes? Docs: https://www.brainiac.software/api/appsec-config/docs#appsec-config-oauth-client-audit Example request: ```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", "*" ] } ``` Example response: ```json { "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." ] } ```