{"uid":"cap_vA606EDeq3MHZGRXiuORl","slug":"brainiac-sensitive-data-flow-audit-api-6b306a1e","name":"BRAINIAC Sensitive Data Flow Audit API","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/security/sensitive-data-flow-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"flows":{"type":"array","items":{"type":"object","required":["id","from_component_id","to_component_id","data_classes"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"protocol":{"type":"string","maxLength":80,"minLength":1},"control_ids":{"type":"array","items":{"type":"string","maxLength":120,"minLength":1},"maxItems":50},"data_classes":{"type":"array","items":{"type":"string","maxLength":80,"minLength":1},"maxItems":20,"minItems":1},"to_component_id":{"type":"string","maxLength":120,"minLength":1},"from_component_id":{"type":"string","maxLength":120,"minLength":1}},"additionalProperties":false},"maxItems":2000,"minItems":1},"zones":{"type":"array","items":{"type":"object","required":["id","trust_level"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"name":{"type":"string","maxLength":200,"minLength":1},"trust_level":{"type":"integer","maximum":100,"minimum":0}},"additionalProperties":false},"maxItems":100,"minItems":1},"controls":{"type":"array","items":{"type":"object","required":["id","kind"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"kind":{"enum":["encryption_in_transit","encryption_at_rest","authentication","authorization","network_policy","tokenization","logging","other"],"type":"string"},"flow_ids":{"type":"array","items":{"type":"string","maxLength":120,"minLength":1},"maxItems":100},"zone_ids":{"type":"array","items":{"type":"string","maxLength":120,"minLength":1},"maxItems":100},"component_ids":{"type":"array","items":{"type":"string","maxLength":120,"minLength":1},"maxItems":100}},"additionalProperties":false},"maxItems":1000},"components":{"type":"array","items":{"type":"object","required":["id","zone_id"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"kind":{"enum":["service","datastore","gateway","client","queue","other"],"type":"string"},"name":{"type":"string","maxLength":200,"minLength":1},"zone_id":{"type":"string","maxLength":120,"minLength":1}},"additionalProperties":false},"maxItems":500,"minItems":1},"handling_rules":{"type":"array","items":{"type":"object","required":["id","data_class"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"data_class":{"type":"string","maxLength":80,"minLength":1},"allowed_zone_ids":{"type":"array","items":{"type":"string","maxLength":120,"minLength":1},"maxItems":100},"allowed_component_ids":{"type":"array","items":{"type":"string","maxLength":120,"minLength":1},"maxItems":100},"require_control_kinds":{"type":"array","items":{"enum":["encryption_in_transit","encryption_at_rest","authentication","authorization","network_policy","tokenization","logging","other"],"type":"string"},"maxItems":20},"forbidden_component_ids":{"type":"array","items":{"type":"string","maxLength":120,"minLength":1},"maxItems":100}},"additionalProperties":false},"maxItems":500,"minItems":1},"sensitive_data_classes":{"type":"array","items":{"type":"string","maxLength":80,"minLength":1},"maxItems":100,"minItems":1}}},"responseSchema":{"type":"json","example":{"summary":{"flows":1,"findings":2},"findings":[{"code":"zone_handling_violation","flow_id":"f1","rule_id":"r1","evidence":["Rule r1 allows zones pci; flow crosses pci -> app."],"severity":"high","data_class":"card_pan","remediation":"Keep card_pan inside allowed zones or update rule r1 explicitly.","to_component_id":"web","from_component_id":"vault"},{"code":"missing_required_control","flow_id":"f1","rule_id":"r1","evidence":["Rule r1 requires tokenization; missing tokenization on flow f1."],"severity":"high","data_class":"card_pan","remediation":"Attach controls of kinds tokenization to flow f1 or its endpoints.","to_component_id":"web","missing_controls":["tokenization"],"from_component_id":"vault"}],"explanations":["Only data_classes listed in sensitive_data_classes are audited.","Violations are evaluated only against supplied handling_rules. No repository or runtime is scanned."],"sensitive_flows":["f1"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o9jcvGS8Rlwwr7_IrTotZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Audits system architecture data flows for sensitive data handling violations, missing security controls, and zone policy breaches based on supplied handling rules.","exampleAgentPrompt":"Audit these data flows for sensitive data handling issues — I have one flow from a 'vault' component to a 'web' component carrying 'card_pan' data, the vault is in a PCI zone (trust level 90) and the web component is in an app zone (trust level 50), I have a handling rule requiring tokenization for card_pan, and the only control I've attached is encryption_in_transit. Tell me what violations exist and how to fix them.","exampleUseCases":[{"title":"PCI-DSS cardholder data flow review","prompt":"I need to audit our payment processing architecture for PCI compliance — we have a vault service in a PCI zone, an API gateway in a DMZ zone, and a web frontend in an app zone, with flows carrying card_pan and card_cvv data between them. We have tokenization controls on the vault-to-gateway flow but nothing on the gateway-to-web flow. Can you find the violations and tell me what controls are missing?"},{"title":"Healthcare system HIPAA data flow check","prompt":"Can you audit our healthcare app's data flows for sensitive data handling violations? We have flows carrying 'patient_ssn' and 'medical_record' between our ingestion service, processing queue, and datastore, with encryption_in_transit applied but no encryption_at_rest or authorization controls. Our handling rules require both encryption types and authorization for PHI data classes."},{"title":"Microservices architecture security gap detection","prompt":"Run a sensitive data flow audit on our microservices design — we have 6 components across internal and external trust zones, flows carrying 'api_key' and 'user_email' data, and handling rules that require authentication and logging on any flow from external to internal zones. I want to know which flows are missing required controls and what the severity is."}],"resultDescription":"Returns a structured audit report containing: a summary of total flows and findings count, an array of findings each with a finding code (e.g. zone_handling_violation, missing_required_control), the affected flow ID, rule ID, data class, severity level, evidence strings explaining the violation, remediation advice, and the source/destination component IDs. Also includes a list of which flows were identified as carrying sensitive data and explanatory notes about audit scope limitations.","failureModes":["Invalid or missing required flow fields (id, from_component_id, to_component_id, data_classes) causes validation error","Referencing component IDs in flows that don't exist in the components array may produce incomplete results","Exceeding array size limits (2000 flows, 100 zones, 1000 controls) causes rejection","Empty flows array rejected by minItems constraint","No findings returned if no handling_rules are supplied, since violations are only evaluated against supplied rules","Payment failure via x402 if insufficient USDC balance on Base"],"whenToPreferThis":"Use this endpoint when you need a fast, schema-driven audit of a system's data flow architecture against explicit handling rules — without deploying any scanning agents or connecting to live infrastructure. Ideal for threat modeling, architecture reviews, CI/CD compliance gates, or design-time security validation. Prefer this over runtime scanning tools when you want deterministic, rule-based analysis of a data flow graph you can fully describe. At $0.04 per call with no account setup required, it suits automated agent pipelines that need pay-per-use compliance checking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T12:50:02.652Z","isFirstParty":false,"canonicalSlug":"brainiac-sensitive-data-flow-audit-api-6b306a1e"}