> For the complete documentation index, see [llms.txt](https://martian1337.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference.md). Agents can also search and read this documentation through its [MCP server](https://martian1337.gitbook.io/notes/~gitbook/mcp).

# Application Platform Security Reference

Defender-oriented references organized by the platform an application runs on, not by flaw class. The [Vulnerability Class Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference.md) explains recurring weaknesses such as injection and access control failures. These pages explain how a platform changes the trust boundaries around those weaknesses: who is the attacker, what is the privileged component, which controls move to a different layer, and what the platform leaves to you. Vendor-neutral: named products and APIs are examples, and version-specific behavior is flagged where it matters.

Each page follows the same shape: scope and durability note, trust boundaries, defenses in order of preference, review and testing, detection, a checklist, and cross-references into the hands-on sections.

## Files

| File                                                                                                                                                                                                                                                                                                                       | Purpose                                                                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Multi-Tenant Application Isolation Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/multi-tenant-application-isolation-reference.md)                                                                                                       | Tenancy models, deriving tenant context from identity, layered enforcement from the database to the application, the failure patterns that leak data across tenants, and how to test for them.                                          |
| [Serverless Application Security Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/serverless-application-security-reference.md)                                                                                                             | Event sources as inputs, per-function identity and invocation permissions, credentials in the runtime, execution-environment reuse, scaling and cost abuse, and audit.                                                                  |
| [Electron and Desktop Application Security Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/electron-and-desktop-application-security-reference.md)                                                                                         | An embedded browser with operating-system privileges: process boundaries, IPC validation, navigation control, protocol handlers, signed updates, and packaging hardening.                                                               |
| [Browser Extension Security Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/browser-extension-security-reference.md)                                                                                                                       | Extension architecture and trust boundaries, permission minimization, messaging, publishing and supply chain, and governance of extensions on managed browsers.                                                                         |
| [Tenant SSO, SCIM Provisioning and Identity Provider Configuration Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/tenant-sso-scim-provisioning-and-identity-provider-configuration-reference.md)                                          | How a tenant administrator's identity-provider settings become trust decisions: domain claims, the SSO enforcement matrix, just-in-time provisioning, SCIM server design, deprovisioning reach with time budgets, and lockout recovery. |
| [Browser Application State Reference: Storage, Caches, Service Workers and PWAs](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/browser-application-state-reference-storage-caches-service-workers-and-pwas.md)                                      | What a browser keeps for a web application (storage, caches, service workers, push, bfcache), who can read it, token placement, and cleanup on logout and account switch.                                                               |
| [Platform Extensibility and Customer-Code Execution Reference: Scripts, Plugins and Embedded Apps](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/platform-extensibility-and-customer-code-execution-reference-scripts-plugins-and-embedded-apps.md) | Customer and partner code that runs inside a product: extension kinds, the host API as a capability surface, runtime isolation by threat, embedded app frames, code review on update, and revocation of running code.                   |
| [AI Feature Integration Reference: Retrieval Authorization, Tool Authority and Output Handling](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/ai-feature-integration-reference-retrieval-authorization-tool-authority-and-output-handling.md)       | Model features in a product: retrieval authorization, tool authority, output handling and rendering, memory and cache tenancy, hosting a tool server, and testing with a hostile model stub.                                            |

## Which page to read

| If you are building or reviewing                                                 | Start with                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A SaaS product where customers share infrastructure                              | [Multi-Tenant Application Isolation Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/multi-tenant-application-isolation-reference.md)                                                                                                                                                                                                                                                         |
| A SaaS product whose customers bring their own identity provider                 | [Tenant SSO, SCIM Provisioning and Identity Provider Configuration Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/tenant-sso-scim-provisioning-and-identity-provider-configuration-reference.md)                                                                                                                                                                                            |
| A single-page app or progressive web app                                         | [Browser Application State Reference: Storage, Caches, Service Workers and PWAs](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/browser-application-state-reference-storage-caches-service-workers-and-pwas.md)                                                                                                                                                                                        |
| A product that lets customers or partners run scripts, plugins, or embedded apps | [Platform Extensibility and Customer-Code Execution Reference: Scripts, Plugins and Embedded Apps](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/platform-extensibility-and-customer-code-execution-reference-scripts-plugins-and-embedded-apps.md)                                                                                                                                                   |
| A feature where a model reads your data, calls tools, or renders output          | [AI Feature Integration Reference: Retrieval Authorization, Tool Authority and Output Handling](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/ai-feature-integration-reference-retrieval-authorization-tool-authority-and-output-handling.md)                                                                                                                                                         |
| Functions triggered by queues, storage events, or API gateways                   | [Serverless Application Security Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/serverless-application-security-reference.md), then [Multi-Tenant Application Isolation Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/multi-tenant-application-isolation-reference.md) if functions serve several tenants |
| A desktop client built on a web stack                                            | [Electron and Desktop Application Security Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/electron-and-desktop-application-security-reference.md)                                                                                                                                                                                                                                           |
| A browser extension, or a policy for which extensions employees may install      | [Browser Extension Security Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference/browser-extension-security-reference.md)                                                                                                                                                                                                                                                                         |
| A mobile app                                                                     | [Mobile Application Security](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/mobile-application-security.md), [Mobile Platform Interaction Reference: Deep Links, Intents, WebViews and Native Sign-In](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/mobile-application-security/mobile-platform-interaction-reference-deep-links-intents-webviews-and-native-sign-in.md)                                      |
| An updater or OTA channel for any client                                         | [Secure Software Update Delivery Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/product-security-and-psirt/secure-software-update-delivery-reference.md)                                                                                                                                                                                                                                                                            |

## Related

* [Vulnerability Class Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference.md): the per-class references these pages build on.
* [Application Security and Secure SDLC](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc.md): the class overview, Top 10, ASVS, and the Secure SDLC.
* [AppSec Testing](https://martian1337.gitbook.io/notes/appsec/appsec.md): the hands-on checklists and test cases.
* [Product Security Engineering](https://martian1337.gitbook.io/notes/appsec/product-security-engineering.md): static analysis, DevSecOps, and threat modeling.
* [Cloud Security Baselines](https://martian1337.gitbook.io/notes/security-engineering/cloud-platform-and-endpoint-security/cloud-security-baselines.md) and [Container Security](https://martian1337.gitbook.io/notes/security-engineering/cloud-platform-and-endpoint-security/container-security.md): the infrastructure these applications run on.

## Sources

* [OWASP Top 10:2025](https://owasp.org/Top10/2025/)
* [OWASP ASVS](https://owasp.org/www-project-application-security-verification-standard/)
* [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/)
* [MITRE CWE](https://cwe.mitre.org/)
