Zurück zum Katalog
Statische PrüfungEntwicklung

Skill-Dossier

implementing-aws-nitro-enclave-security

Quellenangabe

Build AWS Nitro Enclave confidential computing environments using nitro-cli to create enclave images, configure attestation-aware KMS policies with PCR condition keys, validate attestation documents against the Nitro PKI root, and set up vsock/kmstool-enclave-cli pipelines for processing PII, keys, and health records. Use for Nitro Enclave setup, attestation validation, or scoping KMS to an enclave image hash.

Die ursprüngliche Beschreibung der Autorinnen und Autoren, unverändert auf Englisch. Sie beschreibt die Absicht, nicht die geprüfte Leistung.

Build AWS Nitro Enclave confidential computing environments using nitro-cli to create enclave images, configure attestation-aware KMS policies with PCR condition keys, validate attestation documents against the Nitro PKI root, and set up vsock/kmstool-enclave-cli pipelines for processing PII, keys, and health records. Use for Nitro Enclave setup, attestation validation, or scoping KMS to an enclave image hash.

developmentreferencesscripts

Die Forschungsinhalte dieser Website sind auf Englisch und Chinesisch veröffentlicht und werden hier auf Englisch angezeigt.

Forschungszusammenfassung

Statische Analyse

Diese Beobachtungen stammen aus deterministischem Quell-Parsing. Sie sind keine kontrollierte Aufgabenevaluation.

Build AWS Nitro Enclave confidential computing environments using nitro-cli to create enclave images, configure attestation-aware KMS policies with PCR condition keys, validate attestation documents against the Nitro PKI root, and set up vsock/kmstool-enclave-cli pipelines for processing PII, keys, and health records. Use for Nitro Enclave setup, attestation validation, or scoping KMS to an enclave image hash. This bilingual summary is generated deterministically from collected source text and file structure; it is from static parsing.

Prüfungsumfang

Deterministic static analysis of collected SKILL.md and supporting text/code. Machine-assisted candidates and findings are static-analysis candidates; no dynamic behavior or effect is assessed.

Beobachtbare Fähigkeiten

  • Workflow [Source statement; provisional, not tested. Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L56]
  • Step 1: Configure the Nitro Enclaves Environment [Source statement; provisional, not tested. Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L58]
  • Step 2: Build the Enclave Image File (EIF) [Source statement; provisional, not tested. Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L80]
  • Step 3: Configure KMS Attestation-Based Key Policies [Source statement; provisional, not tested. Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L125]
  • Step 4: Implement Secure Vsock Communication [Source statement; provisional, not tested. Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L177]
  • Step 5: Validate Attestation Documents [Source statement; provisional, not tested. Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L280]
  • Step 6: Launch and Monitor the Enclave [Source statement; provisional, not tested. Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L337]

Grenzen & Umfang

  • Static analysis cannot assess runtime behavior, command success, network reachability, or model output quality.
  • No commands, scripts, network requests, model calls, or controlled skill executions were performed.
  • Category, tags, capabilities, workflows, and bilingual editorial summaries are deterministic candidates from static parsing, not verified outcomes.
  • Exact token counts are unavailable until a later pipeline performs and records an official model-specific count.

Relevant für

  • Practitioners evaluating whether to inspect and install the source skill; this audience is inferred from the product context, not measured usage. [Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L1-L34]

Was der Skill enthält

Die Dateiübersicht stammt aus der erfassten Quelle beim protokollierten Commit. Pfade und Größen sind strukturelle Beobachtungen, kein Qualitätsmaß.

Dateien
4
Markdown-Dateien
2
Skripte
1
Verweise
1
Größe
57 KB
Strukturelle Komplexität
Niedrig

Dateiübersicht

PfadArtBytes
skills/implementing-aws-nitro-enclave-security/LICENSESonstiges11 KB
skills/implementing-aws-nitro-enclave-security/references/api-reference.mdVerweis4 KB
skills/implementing-aws-nitro-enclave-security/scripts/agent.pySkript20,6 KB
skills/implementing-aws-nitro-enclave-security/SKILL.mdAnweisung21,3 KB

SKILL.md-Frontmatter

{
  "name": "implementing-aws-nitro-enclave-security",
  "description": "Build AWS Nitro Enclave confidential computing environments using nitro-cli to create enclave images, configure attestation-aware KMS policies with PCR condition keys, validate attestation documents against the Nitro PKI root, and set up vsock/kmstool-enclave-cli pipelines for processing PII, keys, and health records. Use for Nitro Enclave setup, attestation validation, or scoping KMS to an enclave image hash.\n",
  "domain": "cybersecurity",
  "subdomain": "cloud-security",
  "tags": [
    "AWS-Nitro-Enclaves",
    "confidential-computing",
    "attestation",
    "KMS",
    "enclave-isolation",
    "vsock",
    "PCR"
  ],
  "version": "1.0.0",
  "author": "mukul975",
  "license": "Apache-2.0",
  "nist_csf": [
    "PR.IR-01",
    "ID.AM-08",
    "GV.SC-06",
    "DE.CM-01"
  ],
  "mitre_attack": [
    "T1078.004",
    "T1530",
    "T1537",
    "T1580",
    "T0816"
  ]
}

Eine Lesart des Ablaufs

Dieser Workflow rekonstruiert die offensichtliche Reihenfolge aus dem Quellmaterial. Sofern nicht ausdrücklich eine kontrollierte Evaluation protokolliert ist, ist er vorläufig und keine beobachtete Ausführung.

  1. 01
    Entscheidung

    When to Use

    Source-described decision candidate under “When to Use”; not verified execution.

  2. 02
    Aktion

    Workflow

    Source-described action candidate under “Workflow”; not verified execution.

  3. 03
    Aktion

    Step 1: Configure the Nitro Enclaves Environment

    Source-described action candidate under “Step 1: Configure the Nitro Enclaves Environment”; not verified execution.

  4. 04
    Aktion

    Install the Nitro Enclaves CLI: On Amazon Linux 2, install the tools and allocator:

    Source-described action candidate under “Step 1: Configure the Nitro Enclaves Environment”; not verified execution.

  5. 05
    Aktion

    Configure memory and CPU allocation: Edit `/etc/nitroenclaves/allocator.yaml` to reserve resources for the enclave. The enclave requires dedicated memory that is carved from the parent instance:

    Source-described action candidate under “Step 1: Configure the Nitro Enclaves Environment”; not verified execution.

  6. 06
    Aktion

    Verify setup: Run `nitro-cli describe-enclaves` to confirm the CLI can communicate with the Nitro hypervisor. An empty JSON array `[]` indicates no enclaves are running and the setup is correct.

    Source-described action candidate under “Step 1: Configure the Nitro Enclaves Environment”; not verified execution.

Alle extrahierten Workflow-Kandidaten ansehen (61 Kandidatenschritte)
  1. 07
    Aktion

    Step 2: Build the Enclave Image File (EIF)

    Source-described action candidate under “Step 2: Build the Enclave Image File (EIF)”; not verified execution.

  2. 08
    Aktion

    Create the application Dockerfile: The enclave runs a minimal Linux environment. The application communicates exclusively through vsock:

    Source-described action candidate under “Step 2: Build the Enclave Image File (EIF)”; not verified execution.

  3. 09
    Aktion

    Build the EIF with nitro-cli: Convert the Docker image into an enclave image file, capturing the PCR measurements:

    Source-described action candidate under “Step 2: Build the Enclave Image File (EIF)”; not verified execution.

  4. 10
    Aktion

    PCR0: SHA-384 hash of the enclave image file (the full image digest)

    Source-described action candidate under “Step 2: Build the Enclave Image File (EIF)”; not verified execution.

  5. 11
    Aktion

    PCR1: SHA-384 hash of the Linux kernel and bootstrap process

    Source-described action candidate under “Step 2: Build the Enclave Image File (EIF)”; not verified execution.

  6. 12
    Aktion

    PCR2: SHA-384 hash of the application code

    Source-described action candidate under “Step 2: Build the Enclave Image File (EIF)”; not verified execution.

  7. 13
    Aktion

    Build a signed EIF (recommended for production): Generate a signing certificate and use it to produce PCR8:

    Source-described action candidate under “Step 2: Build the Enclave Image File (EIF)”; not verified execution.

  8. 14
    Aktion

    Step 3: Configure KMS Attestation-Based Key Policies

    Source-described action candidate under “Step 3: Configure KMS Attestation-Based Key Policies”; not verified execution.

  9. 15
    Aktion

    Create a KMS key policy that restricts decryption to a verified enclave:

    Source-described action candidate under “Step 3: Configure KMS Attestation-Based Key Policies”; not verified execution.

  10. 16
    Aktion

    Policy using PCR0 (image hash): This locks the key to a specific enclave build. Any code change produces a new PCR0, requiring a policy update:

    Source-described action candidate under “Step 3: Configure KMS Attestation-Based Key Policies”; not verified execution.

  11. 17
    Aktion

    Policy using PCR8 (signing certificate): Trusts any enclave signed with a specific certificate, enabling image rotation without policy changes:

    Source-described action candidate under “Step 3: Configure KMS Attestation-Based Key Policies”; not verified execution.

  12. 18
    Aktion

    Multi-PCR policy for defense in depth: Combine PCR0 (image) and PCR1 (kernel) to ensure both the application and the boot environment match expected values:

    Source-described action candidate under “Step 3: Configure KMS Attestation-Based Key Policies”; not verified execution.

  13. 19
    Aktion

    IAM role policy: The parent instance's IAM role must have `kms:Decrypt` permission, but the KMS key policy condition ensures the actual decryption only succeeds when the request originates from a valid enclave with the correct attestation document attached.

    Source-described action candidate under “Step 3: Configure KMS Attestation-Based Key Policies”; not verified execution.

  14. 20
    Aktion

    Step 4: Implement Secure Vsock Communication

    Source-described action candidate under “Step 4: Implement Secure Vsock Communication”; not verified execution.

  15. 21
    Aktion

    Vsock architecture: The only way an enclave communicates with the outside world is through a vsock (virtual socket). Vsock uses a CID (Context Identifier) and port number. The parent instance CID is always `3`, and the enclave CID is assigned at launch.

    Source-described action candidate under “Step 4: Implement Secure Vsock Communication”; not verified execution.

  16. 22
    Aktion

    Parent-side proxy server: The parent runs a proxy that forwards KMS API calls from the enclave through the vsock to the AWS KMS endpoint:

    Source-described action candidate under “Step 4: Implement Secure Vsock Communication”; not verified execution.

  17. 23
    Aktion

    Enclave-side client: The enclave application requests an attestation document from the Nitro Security Module (NSM) device at `/dev/nsm`, attaches it to KMS decrypt requests, and receives data encrypted to the enclave's ephemeral public key:

    Source-described action candidate under “Step 4: Implement Secure Vsock Communication”; not verified execution.

  18. 24
    Aktion

    Step 5: Validate Attestation Documents

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  19. 25
    Aktion

    Attestation document structure: The document is CBOR-encoded and COSE-signed (COSESign1). It contains:

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  20. 26
    Aktion

    `moduleid`: Identifier for the NSM module

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  21. 27
    Aktion

    `digest`: Hashing algorithm (SHA-384)

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  22. 28
    Aktion

    `timestamp`: Unix epoch milliseconds when the document was created

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  23. 29
    Aktion

    `pcrs`: Map of PCR index to measurement value (PCR0-PCR15)

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  24. 30
    Aktion

    `certificate`: The NSM's x509 certificate, signed by the Nitro PKI

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  25. 31
    Aktion

    `cabundle`: Certificate chain from the NSM certificate to the AWS Nitro root CA

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  26. 32
    Eingabe

    `publickey`: The enclave's ephemeral public key (provided at attestation request time)

    Source-described input candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  27. 33
    Aktion

    `userdata`: Optional application-defined data (up to 512 bytes)

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  28. 34
    Aktion

    `nonce`: Optional nonce for freshness verification

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  29. 35
    Aktion

    Validation steps:

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  30. 36
    Aktion

    Decode the COSESign1 structure and extract the payload and certificate

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  31. 37
    Aktion

    Verify the COSE signature using the public key from the embedded certificate

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  32. 38
    Aktion

    Validate the certificate chain from the NSM certificate through the CA bundle to the AWS Nitro Attestation PKI root certificate (available at `https://aws-nitro-enclaves.amazonaws.com/AWSNitroEnclavesRoot-G1.zip`)

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  33. 39
    Aktion

    Check that the root CA certificate matches the expected AWS root: `aws.nitro-enclaves` CN

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  34. 40
    Aktion

    Verify that no certificate in the chain is expired at the document's timestamp

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  35. 41
    Ausgabe

    Compare PCR0, PCR1, PCR2 values against expected measurements from the enclave build output

    Source-described output candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  36. 42
    Entscheidung

    If a nonce was provided, verify it matches to prevent replay attacks

    Source-described decision candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  37. 43
    Aktion

    Attestation validation code:

    Source-described action candidate under “Step 5: Validate Attestation Documents”; not verified execution.

  38. 44
    Aktion

    Step 6: Launch and Monitor the Enclave

    Source-described action candidate under “Step 6: Launch and Monitor the Enclave”; not verified execution.

  39. 45
    Aktion

    Run the enclave and implement operational monitoring:

    Source-described action candidate under “Step 6: Launch and Monitor the Enclave”; not verified execution.

  40. 46
    Aktion

    Launch the enclave:

    Source-described action candidate under “Step 6: Launch and Monitor the Enclave”; not verified execution.

  41. 47
    Aktion

    Verify enclave status:

    Source-described action candidate under “Step 6: Launch and Monitor the Enclave”; not verified execution.

  42. 48
    Eingabe

    Read enclave console (debug mode only):

    Source-described input candidate under “Step 6: Launch and Monitor the Enclave”; not verified execution.

  43. 49
    Aktion

    Terminate the enclave:

    Source-described action candidate under “Step 6: Launch and Monitor the Enclave”; not verified execution.

  44. 50
    Ausgabe

    CloudWatch monitoring: Configure the parent instance to report enclave health metrics. Since the enclave has no network access, health checks must go through the vsock proxy:

    Source-described output candidate under “Step 6: Launch and Monitor the Enclave”; not verified execution.

  45. 51
    Aktion

    Key Concepts

    Source-described action candidate under “Key Concepts”; not verified execution.

  46. 52
    Aktion

    Tools & Systems

    Source-described action candidate under “Tools & Systems”; not verified execution.

  47. 53
    Aktion

    Common Scenarios

    Source-described action candidate under “Common Scenarios”; not verified execution.

  48. 54
    Aktion

    Build the tokenization application into a Docker image containing the tokenization logic, the `kmstool-enclave-cli` binary, and a vsock server that accepts encrypted records

    Source-described action candidate under “Scenario: Implementing a PII Tokenization Service in a Nitro Enclave”; not verified execution.

  49. 55
    Ausgabe

    Build the EIF with `nitro-cli build-enclave` and record PCR0, PCR1, PCR2 from the build output

    Source-described output candidate under “Scenario: Implementing a PII Tokenization Service in a Nitro Enclave”; not verified execution.

  50. 56
    Aktion

    Create a KMS key with a key policy that includes a `kms:RecipientAttestation:ImageSha384` condition matching PCR0, allowing only this specific enclave build to decrypt patient records

    Source-described action candidate under “Scenario: Implementing a PII Tokenization Service in a Nitro Enclave”; not verified execution.

  51. 57
    Aktion

    Deploy the parent instance with an IAM role that has `kms:Decrypt` on the key, but the KMS condition ensures decryption only succeeds inside the attested enclave

    Source-described action candidate under “Scenario: Implementing a PII Tokenization Service in a Nitro Enclave”; not verified execution.

  52. 58
    Aktion

    The parent application receives encrypted patient records over HTTPS, passes them to the enclave over vsock port 5000, and receives tokenized records back

    Source-described action candidate under “Scenario: Implementing a PII Tokenization Service in a Nitro Enclave”; not verified execution.

  53. 59
    Aktion

    The enclave requests an attestation document from the NSM, attaches it to the KMS Decrypt call, receives the plaintext encrypted to its ephemeral RSA key, decrypts locally, tokenizes PII (SSN, DOB, name), and returns `{ssn: "toka8f3...", dob: "tokb2e1...", name: "tokc9d4..."}`

    Source-described action candidate under “Scenario: Implementing a PII Tokenization Service in a Nitro Enclave”; not verified execution.

  54. 60
    Aktion

    CloudTrail logs show `Decrypt` calls with `RecipientAttestation` parameters, confirming all decryption occurs within the enclave boundary

    Source-described action candidate under “Scenario: Implementing a PII Tokenization Service in a Nitro Enclave”; not verified execution.

  55. 61
    Ausgabe

    Output Format

    Source-described output candidate under “Output Format”; not verified execution.

Mögliche Risikoflächen

Statische Befunde zeigen Stellen, die vor der Installation zu prüfen sind. Sie belegen nicht, dass ein Skill sicher, bösartig oder wirksam ist.

Aufmerksamkeit empfohlen

26 deterministic lexical finding(s) require review across the collected text. Findings can occur in documentation and do not prove execution or exploitability; binary-only files were not scanned.

NetzwerkzugriffBeobachtet
DateischreibzugriffeBeobachtet
Verwendung von ZugangsdatenNicht beobachtet
Mittel

Network access is mentioned

3 Vorkommen

A URL or network client appears in this source line. Review destinations, data sent, and trust boundaries; static text cannot establish actual network activity. This rule matched 3 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Hinweis

File modification is described or implemented

16 Vorkommen

This line contains a possible file-write or redirection operation. Check destination paths and overwrite behavior; the static review did not write any file. This rule matched 16 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Hoch

Elevated privileges are referenced

7 Vorkommen

Privilege-elevation syntax is present. Confirm whether elevation is necessary and inspect every operation performed under it; static analysis cannot prove that elevation succeeded. This rule matched 7 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Wo Kontext verbraucht werden kann

Discovery-, Aktivierungs- und Ressourcenschichten haben unterschiedliche Bedeutung. Exakte Werte erscheinen nur, wenn die offizielle Zählmethode mit einem benannten Modell lief.

Keine exakten Token-Zählwerte verfügbar

All token values, including per-file inventory, are null until the pipeline performs an official exact count with an explicit model.

Es wurde keine Token-Messung mit der vorgeschriebenen offiziellen Methode erfasst. Dieses Dossier ersetzt sie nicht durch Zeichenanzahl, Dateigröße oder Schätzwerte.

Kontrollierte Evaluation

Keine kontrollierte Evaluation

Für diesen Skill liegen nur die oben genannten Belege vor. Es wird keine Aufgabenerfolgsquote, Token-Effizienz, Latenz oder kein Qualitätsvorteil behauptet.

Nicht getestet

Verwendung mit der Quelle im Blick

Installationsbefehl
Inspect the pinned source at https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/54a798831d2266a3ca61ce68a7acb80b81160d57/skills/implementing-aws-nitro-enclave-security/SKILL.md and follow the source repository's installation instructions. No installation was performed or verified by this static analyzer. Source license: Apache-2.0.

Voraussetzungen

  • Static analysis cannot assess runtime behavior, command success, network reachability, or model output quality.
  • No commands, scripts, network requests, model calls, or controlled skill executions were performed.
  • Category, tags, capabilities, workflows, and bilingual editorial summaries are deterministic candidates from static parsing, not verified outcomes.
  • Exact token counts are unavailable until a later pipeline performs and records an official model-specific count.

Beispiel-Prompts

Nicht angegeben

Ein Urteil, mit seinen Grenzen

Stärken

  • The snapshot contains 4 collected file(s), 2 Markdown file(s), and 1 script file(s), enabling source-level inspection. [Evidence: skills/implementing-aws-nitro-enclave-security/SKILL.md:L1]

Abwägungen

  • No functional, security, or model-quality result has been established. Inspect source context and all cited findings before installation or publication.
Forschungsfazit

Provisional deterministic static inventory only; from static parsing and, separately, controlled evaluation. No install recommendation, security assurance, or effectiveness claim is made.

Konstruktiv nachvollziehbar

Das Dossier ist eine zeitlich begrenzte Lesart eines öffentlichen Artefakts, keine Empfehlung. Über den Quelllink können Sie das exakte Upstream-Material prüfen.

mukul975Anthropic-Cybersecurity-Skillsskills/implementing-aws-nitro-enclave-security
Quellenart
Community
Commit
54a798831d2266a3ca61ce68a7acb80b81160d57
Erfasst
20. Nov. 2026
Zuletzt geprüft
20. Nov. 2026
Upstream-Lizenz
Apache-2.0
Repository-Sterne
36.446
Inhaltsgrundlage

Deterministic lexical parsing, YAML frontmatter validation, file inventory, source-described workflow extraction, and heuristic provisional classification of the supplied files only. Generated by machine; no LLM, execution, or dynamic testing.