Designing for compromise: security architecture...

vixentael PRO
November 27, 2026

Designing for compromise: security architecture for mission-critical systems

Imagine two mission-critical systems exchanging sensitive data, when either system, or the network between them, could be compromised. We’ll build a secure integration architecture step by step, challenging common assumptions about trust, and introducing trust boundaries, identities, access control, data minimisation, encryption, and other security controls that limit blast radius.

Using practical examples from defence technology, we'll explore how layered architectural decisions help contain attacks, protect critical data, and keep systems operational even when individual security controls fail.

vixentael PRO

November 27, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

37 slides
  1. Designing for compromise: Cybersecurity Architectures in 2030: security architecture for

    missionZT, DCS, CDSS critical systems Anastasiia Voitova
  2. Anastasiia Voitova Head of Security Engineering @ Cossack Labs Cossack

    Labs is a security solutions company for mission critical applications, founded in 2014 in UK. Building & breaking secure software in power grids, nance, ML/AI, ICS/SCADA, IIoT, robotic & autonomous systems, communication systems — where data & application security is a hard requirement. Since 2022 — helping Ukrainian defenders be more resilient against russian aggression in multiple domains. cossacklabs.com Anastasiia Voitova fi e100a65b25174d37ef4f50850a
  3. A spectacular 0-day. Small boring stuff you never xed, and

    AI found rst. The next breach might already be hiding in your backlog. Which is why we design for compromise. Anastasiia Voitova fi fi e100a65b25174d37ef4f50850a
  4. ClickFix attack (2026) Dev laptop phishing / malware / local

    compromise e100a65b25174d37ef4f50850a Anastasiia Voitova
  5. ClickFix attack (2026) One compromised laptop became the rst step

    in a chain of trusted access. Dev laptop GitHub identity Source code Secrets Other systems phishing / malware / local compromise SSH private key / agent / token repositories, CI con g .env, con g, service creds APIs, clouds, databases, partners Anastasiia Voitova fi fi fi e100a65b25174d37ef4f50850a
  6. ClickFix attack (2026) One compromised laptop became the rst step

    in a chain of trusted access. Dev laptop GitHub identity Source code Secrets Other systems phishing / malware / local compromise SSH private key / agent / token repositories, CI con g .env, con g, service creds APIs, clouds, databases, partners The real problem was transitive trust: one credential led to another credential, which led to another system. Anastasiia Voitova fi fi fi e100a65b25174d37ef4f50850a
  7. How long did it take to discover? How long did

    it take to recover? e100a65b25174d37ef4f50850a Anastasiia Voitova
  8. How long did it take to discover? 2 months How

    long did it take to recover? e100a65b25174d37ef4f50850a Anastasiia Voitova
  9. How long did it take to discover? 2 months How

    long did it take to recover? 6 months (still ongoing) e100a65b25174d37ef4f50850a Anastasiia Voitova
  10. The 3CX double supply-chain attack (2023) Another transitive trust problem

    cloud.google.com/blog/topics/threat-intelligence/ 3cx-software-supply-chain-compromise e100a65b25174d37ef4f50850a Anastasiia Voitova
  11. So what now? We cannot guarantee that a system won't

    be compromised. But we can engineer how far that compromise is allowed to go.
  12. Design for cascading failures 1. Threat modelling (what are the

    threats scenarios) 2. Data ow analysis (what could go wrong at each component) 3. Attackers (who will attack us and why, including insiders and mistakes) 4. Which security controls we need to protect the system and each component. 5. How we will detect failure? (monitoring and detection) 6. How we will recover? fl e100a65b25174d37ef4f50850a Anastasiia Voitova
  13. Let’s imagine System B reads some data from System A

    and sends back processing results. No user is involved. SYSTEM A mission-critical API contains sensitive data GET /objects/{id} POST /results service-to-service SYSTEM B partner / adjacent system needs limited access web systems, not classi ed, talk over the internet, client-server. Anastasiia Voitova fi e100a65b25174d37ef4f50850a
  14. Layer 1: reduce network exposure VPN + IP allowlist /

    rewall rules. The API is reachable only from the expected network segment. SYSTEM A integration system Private network VPN SYSTEM B integration system IP allowlist / ACL Anastasiia Voitova fi e100a65b25174d37ef4f50850a
  15. Layer 1: reduce network exposure VPN + IP allowlist /

    rewall rules. The API is reachable only from the expected network segment. SYSTEM A integration system Private network VPN SYSTEM B integration system IP allowlist / ACL VPN or IP allowlist is not authentication Anastasiia Voitova fi e100a65b25174d37ef4f50850a
  16. Layer 2: accept speci c service identities mTLS gives both

    sides a cryptographic identity and protects the channel. mTLS SYSTEM A server certi cate, private key, validates client identity system identity SYSTEM B client certi cate, private key, validates server identity transport security Validate the certi cate chain, expiration, and expected service identity (e.g. SAN). Store private keys securely. Don’t forget about rotation, revocation, generation / distribution. Anastasiia Voitova fi fi fi fi e100a65b25174d37ef4f50850a
  17. Layer 2: accept speci c service identities mTLS gives both

    sides a cryptographic identity and protects the channel. mTLS SYSTEM A server certi cate, private key, validates client identity system identity SYSTEM B client certi cate, private key, validates server identity transport security mTLS is not authorisation Anastasiia Voitova fi fi fi e100a65b25174d37ef4f50850a
  18. Layer 3: s2s authorisation using JWT scopes mTLS authenticates the

    service. JWT carries its permissions. The API enforces them. JWT SYSTEM A JWT token scope, aud, exp SYSTEM B server certi cate, private key, validation logic TOKEN SERVICE Issues short-lived JWT for a speci c service and scope. system B authenticates to the token service and receives JWT for System A token should be short-lived token should have scopes and audience for speci c API actions Anastasiia Voitova fi fi fi e100a65b25174d37ef4f50850a
  19. JWT: constrains who, what, where iss - only trusted issuer

    sub - who the token represents { "iss": "token-service", "sub": "system-b", "aud": "system-a-data-api", "scope": "objects:read results:write", "exp": 1790896800, "jti": "f4d2..." } aud - where it’s used (only System A data API) scope - what it can do (only read objects + write results) exp - short lifetime limits reuse jti - unique token identi er signature - should be valid type - to avoid token confusion attacks revocation is a problem! JSON Web Token Cheat Sheet cheatsheetseries.owasp.org/cheatsheets/JSON_Web_Token_Cheat_Sheet.html Anastasiia Voitova fi e100a65b25174d37ef4f50850a
  20. Scope should map to a speci c operation Request Required

    scope B token Result GET /objects/{id} objects:read objects:read ALLOW POST /results results:write results:write ALLOW DELETE /objects/{id} objects:delete — DENY GET /admin/users admin:read — DENY Even with valid JWT, system A should check if system B has rights to access speci c objects. Anastasiia Voitova fi fi e100a65b25174d37ef4f50850a
  21. Layer 4: authorise the object, not the operation DECISION GET

    /objects/8472 ALLOW only if every check passes GET /objects/1111 DENY even if the object exists treat object IDs as untrusted references. enforce server-side object-level authorisation: check the ownership check data classi cation check object state A valid object ID does not mean an authorised object. fi e100a65b25174d37ef4f50850a Anastasiia Voitova
  22. What system A checks on every request Trust is not

    inherited from the previous layer. 1 Network path VPN / source IP is allowed 2 mTLS client certi cate represents System B 3 JWT integrity signature + trusted issuer 4 JWT constraints audience + expiry + not-before 5 Scope operation is explicitly permitted 6 Object policy this object / tenant / data class is allowed fi e100a65b25174d37ef4f50850a Anastasiia Voitova
  23. Salesloft Drift incident (2025) One integration to rule them all!

    A token enabled: authenticated API requests access to Salesforce data within granted permissions data theft through authorised interfaces Impact: estimated 700 organisations AWS keys, Snow ake tokens, passwords cloud.google.com/blog/topics/threat-intelligence/datatheft-salesforce-instances-via-salesloft-drift Anastasiia Voitova fl e100a65b25174d37ef4f50850a
  24. Imagine system B is compromised The goal is not to

    make compromise impossible. The goal is to keep it local, visible, and manageable. SYSTEM A protected data + API e100a65b25174d37ef4f50850a valid requests SYSTEM B compromised Anastasiia Voitova
  25. Imagine system B is compromised DETECT SIEM audit logging Each

    layer addresses a different part of the risk. None of them is a magic security control. SYSTEM A valid requests anomaly detection compromised protected data + API CONTAIN short-lived jwt JWT revocation VPN / mTLS revocation kill switch e100a65b25174d37ef4f50850a SYSTEM B LIMIT data minimisation per-integration credentials per user encryption network segmentation object-level authZ bulk export limits per operation scopes rate limits Anastasiia Voitova
  26. Future-proof, adaptive, reusable architectural patterns Zero Trust Network Access –

    ZT assumes there is no implicit trust granted to assets or user accounts based solely on their physical or network location. ZTNA gives users access to speci c network / service. “Never trust, always verify”. NIST SP 800-207. Defence in Depth – creating overlapped and interconnected security defences for the most critical assets. Data centric security – protect the data no matter where it is, not the environment. Based on encryption. Cross domain security solution controls and enforces secure data transfer between systems operating at different trust or classi cation levels. Anastasiia Voitova fi fi e100a65b25174d37ef4f50850a
  27. How to design for failure Threat modelling: STRIDE, CIAA OWASP

    Microservices Security Cheat Sheet Security architecture and design: microservice security, building secure and reliable systems, OWASP cheatsheets. OWASP REST Security Cheat Sheet NIST RMF, NIST CSF. OWASP Authorization Cheat Sheet NIST SP 800-53. Building Secure and Reliable Systems OWASP ASVS. cheatsheetseries.owasp.org/cheatsheets/Microservices_Security_Cheat_Sheet.html cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html OWASP OAuth2 Cheat Sheet cheatsheetseries.owasp.org/cheatsheets/OAuth2_Cheat_Sheet.html cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html google.github.io/building-secure-and-reliable-systems/ Chapter 8: Design for Resilience google.github.io/building-secure-and-reliable-systems/raw/ch08.html e100a65b25174d37ef4f50850a Anastasiia Voitova
  28. 7 questions before connecting two systems 1 Who is allowed

    to establish the connection? 2 What cryptographic identity proves it? 3 Which speci c API is this identity, credential or token intended for? 4 Which operations does it actually need? 5 Which speci c data is it allowed to access? 6 What happens if this side is fully compromised? 7 How quickly can we detect it and cut off access? fi fi e100a65b25174d37ef4f50850a Anastasiia Voitova
  29. Becoming security architect 101 1. Assume individual controls will fail.

    Design the next boundary before they do. 2. Limit trust, capabilities, and blast radius. Identity does not imply unlimited access. 3. Design for detection and recovery, not only prevention. Security is a continuously maintained property. 4. There is no single “secure architecture”. There is an architecture resilient to a de ned threat model. fi e100a65b25174d37ef4f50850a Anastasiia Voitova
  30. ‘designing for compromise’ isn't the same as ‘designing to prevent

    compromise’ e100a65b25174d37ef4f50850a Anastasiia Voitova
  31. Anastasiia Voitova Head of Security Engineering @ Cossack Labs [email protected]

    linkedin.com/in/anastasiiavoitova/ cossacklabs.com speakerdeck.com/vixentael e100a65b25174d37ef4f50850a

More Decks by vixentael

Other Decks in Programming