{"uid":"cap_w63HYHdNynW6MLxF5jNi3","slug":"brainiac-trust-boundary-violation-detector-2bb4cfcf","name":"BRAINIAC Trust Boundary Violation Detector","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/trust-boundary-violation-detect?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":2},"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},"required_controls_on_trust_drop":{"type":"array","items":{"enum":["encryption_in_transit","authentication","authorization","network_policy","tokenization"],"type":"string"},"maxItems":10,"minItems":1}}},"responseSchema":{"type":"json","example":{"summary":{"flows":1,"violations":1},"findings":[{"code":"trust_boundary_violation","flow_id":"f1","evidence":["Flow f1 moves from zone trusted (trust 80) to zone public (trust 10).","Required controls on trust drop: encryption_in_transit, authentication.","…"],"severity":"high","to_zone_id":"public","trust_drop":70,"remediation":"Add encryption_in_transit, authentication on flow f1 or on the components/zones it crosses before allowing this data pa…","data_classes":["pii"],"from_zone_id":"trusted","to_component_id":"cdn","missing_controls":["encryption_in_transit","authentication"],"present_controls":["logging"],"from_component_id":"api"}],"explanations":["A trust-boundary violation is a flow from a higher trust_level zone to a lower one that lacks every required_controls_o…","Controls are matched by flow_ids, component_ids, zone_ids, or flow.control_ids. No infrastructure is scanned."]}},"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_pG2NvAXvyviLRapNjh-X2","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":"Analyzes data flows between system components across trust zones and identifies flows that cross trust boundaries without required security controls","exampleAgentPrompt":"Check my system architecture for trust boundary violations — I have two zones: 'trusted' at trust level 80 and 'public' at trust level 10, with an API service in the trusted zone sending PII data to a CDN in the public zone via flow 'f1', and I only have logging as a control — tell me what required controls are missing.","exampleUseCases":[{"title":"PII data flow security audit","prompt":"I have a backend API in a high-trust internal zone sending user PII to a public-facing CDN in a low-trust zone, with only logging enabled. Can you check if this flow has the required controls like encryption in transit and authentication, and tell me exactly what's missing and how to fix it?"},{"title":"Microservices trust zone review","prompt":"We're doing a security review of our microservices architecture — I have 5 zones ranging from trust level 100 for our internal DB zone down to trust level 5 for the public internet zone, with about 20 data flows between services. Can you analyze all these flows and tell me which ones are crossing trust boundaries without proper controls?"},{"title":"Pre-deployment architecture compliance check","prompt":"Before we ship our new payment processing system, can you scan our data flow design for trust boundary violations? We have flows moving cardholder data from a PCI-scoped zone at trust level 90 to an external reporting service at trust level 20, and I want to know if we're missing any required encryption or authorization controls."}],"resultDescription":"Returns a summary of total flows analyzed and violation count, plus a findings array where each violation includes: the flow ID, severity (e.g. high), trust drop magnitude, from/to zone IDs and component IDs, the data classes involved, which required controls are present vs missing, human-readable evidence statements explaining why the violation was flagged, and a specific remediation recommendation. Also returns explanatory text about how the analysis works.","failureModes":["Missing required fields (id, from_component_id, to_component_id, data_classes on flows, or id/trust_level on zones) returns a validation error","Fewer than 2 zones provided fails minItems constraint","More than 2000 flows or 100 zones exceeds maxItems limits","Component references zone_id that doesn't exist in zones array may produce unexpected results","No violations found returns an empty findings array with summary counts","Payment failure via x402 returns HTTP 402 and no analysis is performed"],"whenToPreferThis":"Use this endpoint when you need automated, structured detection of trust boundary violations in a software architecture described as a data flow graph — especially when doing threat modeling, compliance reviews, or pre-deployment security audits. It is ideal when you have explicit zone trust levels, components mapped to zones, and data flows with associated data classes and controls already defined. Prefer this over manual review when you have many flows to check at once (up to 2000). It does not scan live infrastructure — it reasons about your described architecture model only.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T18:34:44.322Z","isFirstParty":false,"canonicalSlug":"brainiac-trust-boundary-violation-detector-2bb4cfcf"}