gemstone-nexus · Phase 6

DOC16 — Security and Penetration Testing

← Documents

Metadata

iddoc_idtitlecategorysource_pathsummarycontent_hashindexed_at
34DOC16DOC16 — Security and Penetration Testingdoc_suiteDevResources/docs/DOC16-Security-and-Pen-Testing.md- Session transcripts are never transmitted externally, in any security tier, without exception. - Human approval is required for every build task execution, without exception, regardless of platform maturity. - No audio data is ever sent to external APIs. - AES-256 encryption at rest; TLS 1.3 in transit.7f6c87be0093fb1d83fec9004fa78250e9ebd6262026-07-22 18:33:18

Content

# DOC16 — Security and Penetration Testing

*Threat model, standing rules, and test scope*

**Initiative:** GemStone · **Version:** v2.0 (Rewrite) · **Status:** Approved for Build · **Date:** July 17, 2026

## 1. Standing Absolute Rules

- Session transcripts are never transmitted externally, in any security tier, without exception.
- Human approval is required for every build task execution, without exception, regardless of platform maturity.
- No audio data is ever sent to external APIs.
- AES-256 encryption at rest; TLS 1.3 in transit.

## 2. Threat Model, Selected Entries

| Threat | Category | Mitigation |
| --- | --- | --- |
| Tampering with tier field to escalate access mid-session | Tampering | Database-level immutability constraint; TierGuard as sole enforcement point |
| Task forced to RUNNING without approval via direct API/DB write | Elevation of Privilege | Schema-level NOT NULL/CHECK constraints on approved_by/approved_at, not application logic alone |
| Cross-org data disclosure under concurrent load | Information Disclosure | org_id scoping enforced at query layer, tested under concurrency (DOC14 Section 3) |
| Ambient audio captured outside an explicit mic-open session | Information Disclosure / Privacy | No intermediate buffer state exists by design; capture begins only on button/wake-word event |
| Raw audio retained indefinitely after a silent pipeline failure | Repudiation / Information Disclosure | Chunked-hold plus mandatory dual flagging (in-app + system log) |

## 3. Test Scope

- Verify TierGuard is the sole enforcement point; scan for secondary or bypassable tier-check implementations.
- Verify tier immutability; no code path allows mid-session escalation or downgrade.
- Verify OrgID scoping; no cross-org leakage under load or concurrent access.
- Verify no ambient audio capture outside an explicitly open mic session.
- Verify Android foreground-service microphone use carries the required persistent notification.
- Verify iOS background-audio entitlement usage is scoped to Extended Sessions only.
- Verify entity scrubbing executes on every Research Agent query before reaching any external provider.
- Verify audit tokens are generated and logged for every external query.

## 4. Penetration Testing

Full penetration test at Phase 5, covering OWASP Top 10 categories at minimum. All Critical and High findings must be remediated and re-tested before production deployment; Medium findings require a documented remediation plan with owner and date.

### Phase 5 status (2026-07-21)

| Item | Status |
| --- | --- |
| Engineering threat-model + scope (this DOC §§1–3) | Current |
| Engagement brief for vendor | `DevResources/docs/DOC-PenTest-Engagement-Brief.md` |
| Third-party pen test execution | **Not run** — requires vendor engagement (cannot execute in-agent) |
| Critical/High remediation + re-test | Blocked on vendor report |


---
NEXTECH Business Technology Management LLC · nex-tech.biz · (941) 499-5505