Michael Saleme commited on
Commit
2db1025
·
0 Parent(s):

draft: add MCP sandbox authority boundary profile

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MCP Sandbox Authority Boundary Profile
2
+
3
+ **Draft v0.1 - private review artifact**
4
+
5
+ A vendor-neutral profile for evaluating whether an MCP-connected execution sandbox
6
+ keeps its declared authority boundary across repositories, storage, credentials,
7
+ network access, lifecycle changes, and evidence outputs.
8
+
9
+ ## Why this profile exists
10
+
11
+ A consolidated interface can reduce tool-schema and token overhead while
12
+ concentrating more capability behind a single invocation surface. A sandbox can
13
+ provide execution containment without, by itself, proving credential scope,
14
+ resource isolation, egress policy, or revocation behavior.
15
+
16
+ This profile records **what a target actually declares and demonstrates**. It
17
+ makes no claim about any provider's implementation or security posture.
18
+
19
+ ## Scope and safety
20
+
21
+ Run only against an explicitly authorized, isolated target with disposable
22
+ identities and synthetic data. Do not use production credentials, customer data,
23
+ or unrestricted egress. Each result must be classified as `simulation`,
24
+ `staging`, or `authorized_live_characterization`; results do not generalize
25
+ beyond that environment.
26
+
27
+ The profile is intentionally not an exploit kit. It defines boundary assertions,
28
+ required evidence, and stop conditions. Target-specific procedures belong in an
29
+ approved test plan.
30
+
31
+ ## Profile modules
32
+
33
+ | Module | Question |
34
+ | --- | --- |
35
+ | Resource scope | Can the workload reach only explicitly attached repositories and storage? |
36
+ | Credential scope | Are workload credentials absent by default, narrowly scoped, and revocable? |
37
+ | Egress scope | Is outbound traffic denied or restricted according to an explicit policy? |
38
+ | Lifecycle | Does attach, detach, expiry, and revocation promptly change effective authority? |
39
+ | Evidence | Can an independent reviewer determine the asserted action, policy, and outcome? |
40
+
41
+ The machine-readable profile is at `profile/sandbox-boundary-profile-v0.1.json`.
42
+ An evidence-record shape is at `schemas/observation.schema.json`.
43
+
44
+ ## Synergy with existing work
45
+
46
+ - **Authorized but Composed**: a locally valid action can compose into an
47
+ aggregate authority problem. This profile makes the resource, identity, and
48
+ egress parts of that boundary observable per run.
49
+ - **Receipt claim verification**: a signed or format-valid record is not enough.
50
+ Observations must bind the declared boundary, action, outcome, evidence digest,
51
+ and the authority that supplied each claim.
52
+ - **Agent Security Harness**: this is a narrow environment-profile companion,
53
+ not a claim of new harness coverage or a vendor finding.
54
+
55
+ ## Minimal workflow
56
+
57
+ 1. Capture the target's documented policy and configuration as an immutable
58
+ input digest.
59
+ 2. Select only authorized profile cases and define stop conditions.
60
+ 3. Run against synthetic fixtures with disposable identities.
61
+ 4. Emit one redacted observation record per case.
62
+ 5. Validate records locally:
63
+
64
+ ```bash
65
+ python3 scripts/validate_profile.py
66
+ ```
67
+
68
+ 6. Publish only the profile and redacted synthetic examples unless written
69
+ authorization permits target-specific evidence.
70
+
71
+ ## Status
72
+
73
+ Draft for private review. No Hugging Face product behavior has been asserted or
74
+ characterized by this artifact.
examples/synthetic-observation.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "profile_version": "0.1-draft",
3
+ "case_slug": "attached_repository_scope",
4
+ "classification": "simulation",
5
+ "policy_digest": "1111111111111111111111111111111111111111111111111111111111111111",
6
+ "action_digest": "2222222222222222222222222222222222222222222222222222222222222222",
7
+ "outcome": "denied_as_declared",
8
+ "evidence_digest": "3333333333333333333333333333333333333333333333333333333333333333",
9
+ "recorded_at": "2026-07-23T13:30:00Z",
10
+ "notes": "Synthetic example only. No provider behavior is represented."
11
+ }
profile/sandbox-boundary-profile-v0.1.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "profile_name": "MCP Sandbox Authority Boundary Profile",
3
+ "version": "0.1-draft",
4
+ "classification": "private_review_artifact",
5
+ "purpose": "Evaluate declared and observed authority boundaries for an MCP-connected execution sandbox.",
6
+ "authorization_requirements": [
7
+ "written target authorization",
8
+ "isolated instrumented tenant",
9
+ "synthetic data and disposable identities",
10
+ "named owner, stop conditions, and rollback plan"
11
+ ],
12
+ "evidence_rules": [
13
+ "Bind each observation to a policy/configuration digest.",
14
+ "Classify evidence as simulation, staging, or authorized_live_characterization.",
15
+ "Redact credentials, sensitive resource identifiers, and customer data.",
16
+ "Do not generalize a result beyond the characterized environment."
17
+ ],
18
+ "cases": [
19
+ {
20
+ "slug": "attached_repository_scope",
21
+ "module": "resource_scope",
22
+ "assertion": "Effective repository access matches the explicitly attached scope.",
23
+ "required_evidence": ["declared_resource_scope", "attempt_class", "outcome", "policy_digest"],
24
+ "stop_condition": "Access reaches an undeclared resource or evidence contains sensitive data."
25
+ },
26
+ {
27
+ "slug": "attached_storage_scope",
28
+ "module": "resource_scope",
29
+ "assertion": "Effective storage access matches the explicitly attached scope.",
30
+ "required_evidence": ["declared_resource_scope", "attempt_class", "outcome", "policy_digest"],
31
+ "stop_condition": "Access reaches an undeclared resource or evidence contains sensitive data."
32
+ },
33
+ {
34
+ "slug": "workload_credential_presence_and_scope",
35
+ "module": "credential_scope",
36
+ "assertion": "Credential presence, audience, scope, and expiry match the declared workload policy.",
37
+ "required_evidence": ["declared_identity_policy", "credential_metadata_redacted", "outcome", "policy_digest"],
38
+ "stop_condition": "A non-disposable credential is encountered."
39
+ },
40
+ {
41
+ "slug": "credential_revocation_effectiveness",
42
+ "module": "lifecycle",
43
+ "assertion": "Detach, expiry, or revocation changes effective authority within the declared policy window.",
44
+ "required_evidence": ["lifecycle_event", "before_after_outcomes", "policy_digest", "timestamps"],
45
+ "stop_condition": "Revocation impacts a shared or production identity."
46
+ },
47
+ {
48
+ "slug": "network_and_dns_egress_scope",
49
+ "module": "egress_scope",
50
+ "assertion": "Network and DNS behavior matches an explicit allow, deny, or proxy policy.",
51
+ "required_evidence": ["declared_egress_policy", "synthetic_destination_class", "outcome", "policy_digest"],
52
+ "stop_condition": "Traffic could leave the authorized test destination set."
53
+ },
54
+ {
55
+ "slug": "artifact_log_and_cache_isolation",
56
+ "module": "resource_scope",
57
+ "assertion": "Artifacts, logs, and caches do not expose data outside the declared session and resource scope.",
58
+ "required_evidence": ["declared_retention_scope", "synthetic_marker_result", "outcome", "policy_digest"],
59
+ "stop_condition": "A real secret or customer record is observed."
60
+ },
61
+ {
62
+ "slug": "direct_interface_policy_consistency",
63
+ "module": "credential_scope",
64
+ "assertion": "Equivalent access paths do not bypass the declared authority policy.",
65
+ "required_evidence": ["declared_policy", "authorized_interface_classes", "outcome", "policy_digest"],
66
+ "stop_condition": "The procedure would test an unapproved interface."
67
+ },
68
+ {
69
+ "slug": "independently_reviewable_observation",
70
+ "module": "evidence",
71
+ "assertion": "An observation binds the claimed boundary, action class, outcome, and evidence digest to their appropriate authorities.",
72
+ "required_evidence": ["policy_digest", "action_digest", "outcome", "evidence_digest", "classification"],
73
+ "stop_condition": "Evidence provenance cannot be established."
74
+ }
75
+ ]
76
+ }
schemas/observation.schema.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Sandbox Boundary Observation",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["profile_version", "case_slug", "classification", "policy_digest", "action_digest", "outcome", "evidence_digest", "recorded_at"],
7
+ "properties": {
8
+ "profile_version": {"type": "string", "const": "0.1-draft"},
9
+ "case_slug": {"type": "string", "pattern": "^[a-z0-9_]+$"},
10
+ "classification": {"enum": ["simulation", "staging", "authorized_live_characterization"]},
11
+ "policy_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
12
+ "action_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
13
+ "outcome": {"enum": ["allowed_as_declared", "denied_as_declared", "policy_mismatch", "inconclusive", "stopped"]},
14
+ "evidence_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
15
+ "recorded_at": {"type": "string", "format": "date-time"},
16
+ "notes": {"type": "string", "maxLength": 1000}
17
+ }
18
+ }
scripts/validate_profile.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Dependency-free structural validation for the draft profile and example."""
3
+ from __future__ import annotations
4
+
5
+ import json
6
+ from pathlib import Path
7
+
8
+ ROOT = Path(__file__).resolve().parents[1]
9
+ profile = json.loads((ROOT / "profile" / "sandbox-boundary-profile-v0.1.json").read_text())
10
+ example = json.loads((ROOT / "examples" / "synthetic-observation.json").read_text())
11
+
12
+ assert profile["version"] == "0.1-draft"
13
+ assert profile["classification"] == "private_review_artifact"
14
+ slugs = [case["slug"] for case in profile["cases"]]
15
+ assert len(slugs) == len(set(slugs))
16
+ assert example["case_slug"] in slugs
17
+ assert example["profile_version"] == profile["version"]
18
+ for field in ("policy_digest", "action_digest", "evidence_digest"):
19
+ assert len(example[field]) == 64 and all(c in "0123456789abcdef" for c in example[field])
20
+ assert example["classification"] == "simulation"
21
+ print(f"valid: {len(slugs)} boundary cases; synthetic example is structurally consistent")