Open-source AI-native Post-Authentication Runtime Control Plane
Security does not end at login. CONTEXA continuously evaluates authenticated runtime behavior and applies zero-trust controls inside the application.
- Website: https://ctxa.ai
- Demo / Verification Console: https://demo.ctxa.ai
- Documentation: https://docs.ctxa.ai
- Architecture: https://docs.ctxa.ai/docs/reference/architecture/overview.html
- Public Benchmark: https://ctxa.ai/benchmark
- Security Contact: https://ctxa.ai/.well-known/security.txt
- GitHub: https://github.com/contexa-security/contexa
CONTEXA is an open-source AI-native Post-Authentication Runtime Control Plane.
It is built for what happens after authentication succeeds:
- request-time runtime zero trust
- authenticated human access decisions
- workload and service-client continuity
- delegated agent execution governance
- exploit-window compensating controls
- verification-backed benchmark and proof generation
CONTEXA is not:
- a vulnerability scanner
- a binary analysis engine
- a penetration testing framework
- a SIEM replacement
- a generic IAM admin SaaS product
CONTEXA complements upstream security discovery by constraining authenticated runtime behavior after risk is discovered.
Most material security failures occur after successful authentication.
At that point, the attacker may already hold one or more of the following:
- a valid session
- a valid token
- a valid workload credential
- an approved tool path
- an authenticated delegated agent
Traditional security often concentrates on login, network edges, and endpoint state. CONTEXA starts where those layers leave off: inside the application runtime, at request time, with zero-trust decisions that can challenge, block, contain, or escalate.
| Dimension | Traditional Security | With CONTEXA |
|---|---|---|
| Decision point | Login or coarse policy checkpoints | Every protected request |
| Scope | Network, endpoint, perimeter | Inside the application runtime |
| Subject | Mostly users and devices | Humans, workloads, service clients, delegated agents |
| Response | Allow or deny | ALLOW, CHALLENGE, BLOCK, ESCALATE, PENDING_ANALYSIS |
| Proof | Logs and dashboards | Verification, benchmark, publication-ready proof |
Glasswing discovers. CONTEXA constrains.
Anthropic Project Glasswing represents upstream AI-driven defensive discovery. CONTEXA addresses the downstream runtime problem that remains after discovery:
- how to reduce exploit windows before remediation is complete
- how to constrain authenticated humans, workloads, and delegated agents
- how to apply compensating controls in production
- how to prove those controls with verification and benchmark artifacts
This repository contains the open-source runtime control engine for that downstream layer.
- Current public OSS version:
0.1.0 - Repository stage: initial public open-source release
- Core focus: post-authentication runtime control inside Spring applications
CONTEXA should be reviewed as early-stage security infrastructure with material category relevance. Its public scale is still developing, but the category it addresses is already operationally important: constraining authenticated runtime behavior after risk is discovered and before remediation is complete.
CONTEXA does not yet claim mature open-source scale. It should instead be assessed on structural security relevance:
- it addresses the post-authentication runtime problem that remains after upstream discovery
- it operates at the application layer, where authenticated requests are actually executed
- it provides public documentation, benchmark surfaces, and a security contact path
- it is built as an open-source runtime control engine rather than a marketing-only concept
- it is relevant to downstream exploit-window reduction for authenticated humans, workloads, service clients, and delegated agents
flowchart LR
A[Authenticated Request\nPost-auth subject request] --> B[contexa-identity\nAuth flows, MFA, adaptive challenge]
B --> C[contexa-iam\nPolicy, resource protection, method protection]
C --> D[contexa-core\nContext, analysis, RAG, LLM adjudication]
D --> E{Runtime Decision\nRequest-time control decision}
E --> F[ALLOW\nPermit request]
E --> G[CHALLENGE\nRequire extra verification]
E --> H[BLOCK\nDeny immediately]
E --> I[ESCALATE\nStronger control or review]
E --> J[PENDING_ANALYSIS\nWait for analysis]
This repository contains the open-source core platform:
contexa-corecontexa-identitycontexa-iamcontexa-commoncontexa-autoconfigurespring-boot-starter-contexa
Commercial and enterprise operational surfaces exist separately. Those surfaces include multi-tenant operations, publication workflows, advanced review planes, and commercial runtime delivery features.
The open-source core remains a meaningful platform on its own. It provides the runtime decision, control, and integration foundation.
- Current release:
0.1.0 - Changelog: CHANGELOG.md
- Release notes: RELEASE_NOTES.md
- Maintainer statement: MAINTAINERS.md
- Governance: GOVERNANCE.md
dependencies {
implementation "ai.ctxa:spring-boot-starter-contexa:0.1.0"
}@SpringBootApplication
@EnableAISecurity
public class MyApplication {
}@Protectable
@PostMapping("/api/users/{id}/disable")
public void disableUser(@PathVariable Long id) {
service.disable(id);
}docker compose up -d postgres ollama
docker exec contexa-ollama ollama pull qwen2.5:7b
docker exec contexa-ollama ollama pull mxbai-embed-large./gradlew bootRunFor full setup, configuration, and architecture guidance, use the documentation site at https://docs.ctxa.ai.
Every protected request receives a runtime decision.
| Action | HTTP | Meaning |
|---|---|---|
ALLOW |
200 | Behavior is within acceptable bounds |
CHALLENGE |
401 | Additional verification is required |
BLOCK |
403 | Active risk requires immediate denial |
ESCALATE |
423 | Human review or higher-friction handling is required |
PENDING_ANALYSIS |
503 | Runtime analysis has not completed yet |
Request (Human / Workload / Service Client / Delegated Agent)
|
+-- contexa-identity
| Authentication flows, MFA, adaptive challenges
|
+-- contexa-iam
| URL, method, and resource policy evaluation
| @Protectable method protection
|
+-- contexa-core
Context collection
Behavioral analysis
RAG and LLM reasoning
Runtime zero-trust decision
Control action application
| Module | Responsibility |
|---|---|
contexa-core |
AI pipeline, LLM orchestration, RAG, autonomous security processing, runtime zero-trust state |
contexa-identity |
Authentication flows, MFA, passkey, adaptive zero-trust access control |
contexa-iam |
Dynamic authorization, policy evaluation, resource scanning, policy workflows |
contexa-common |
Shared annotations, DTOs, enums, contracts |
contexa-autoconfigure |
Spring Boot auto-configuration |
spring-boot-starter-contexa |
Starter entry point for community adoption |
CONTEXA compares each request against runtime context, history, and policy signals to detect behavior that static rules miss.
CONTEXA evaluates URL, method, and resource-level access decisions and supports method-level protection through @Protectable.
CONTEXA can challenge, block, escalate, or defer based on runtime analysis instead of relying only on static roles and ACLs.
CONTEXA is designed to support verification, replay, benchmarking, and publication-ready reporting rather than simple vendor claims.
| Mode | Infrastructure | Use Case |
|---|---|---|
standalone |
PostgreSQL + Ollama | Development and smaller deployments |
distributed |
PostgreSQL + Redis + Kafka | Production and multi-instance deployments |
contexa:
infrastructure:
mode: standalone- Main site: https://ctxa.ai
- Demo / verification console: https://demo.ctxa.ai
- Documentation site: https://docs.ctxa.ai
- Architecture overview: https://docs.ctxa.ai/docs/reference/architecture/overview.html
- Public benchmark entry: https://ctxa.ai/benchmark
- Security policy: SECURITY.md
- Public security.txt: https://ctxa.ai/.well-known/security.txt
- Contributing guide: CONTRIBUTING.md
- Maintainer statement: MAINTAINERS.md
- Governance: GOVERNANCE.md
- Changelog: CHANGELOG.md
- Release notes: RELEASE_NOTES.md
Apache License 2.0. See LICENSE for details.
