Volver al catálogo
Revisión estáticaDesarrollo

Dosier de la skill

implementing-aws-nitro-enclave-security

Declaración de origen

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.

La descripción original del autor, conservada en inglés. Describe la intención, no un rendimiento verificado.

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

El contenido de investigación de este sitio está publicado en inglés y chino, y aquí se muestra en inglés.

Resumen de la investigación

Análisis estático

Estas observaciones proceden del análisis determinista del código fuente. No son una evaluación controlada de tareas.

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.

Alcance de la revisión

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.

Capacidades observables

  • 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]

Limitaciones y alcance

  • 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.

Relevante para

  • 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]

Qué incluye la skill

El inventario de archivos procede del código fuente recopilado en el commit registrado. Las rutas y los tamaños son observaciones estructurales, no una medida de calidad.

archivos
4
Archivos Markdown
2
scripts
1
referencias
1
Tamaño
57 KB
Complejidad estructural
Baja

Inventario de archivos

RutaTipoBytes
skills/implementing-aws-nitro-enclave-security/LICENSEOtro11 KB
skills/implementing-aws-nitro-enclave-security/references/api-reference.mdReferencia4 KB
skills/implementing-aws-nitro-enclave-security/scripts/agent.pyScript20,6 KB
skills/implementing-aws-nitro-enclave-security/SKILL.mdInstrucción21,3 KB

Frontmatter de SKILL.md

{
  "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"
  ]
}

Una lectura de la secuencia de funcionamiento

Este flujo de trabajo reconstruye la secuencia aparente a partir del material de origen. A menos que se registre explícitamente una evaluación controlada, es provisional y no un seguimiento observado.

  1. 01
    Decisión

    When to Use

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

  2. 02
    Acción

    Workflow

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

  3. 03
    Acción

    Step 1: Configure the Nitro Enclaves Environment

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

  4. 04
    Acción

    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
    Acción

    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
    Acción

    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.

Examinar todos los pasos de flujo de trabajo candidatos (61 pasos candidatos)
  1. 07
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    Step 4: Implement Secure Vsock Communication

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

  15. 21
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    Step 5: Validate Attestation Documents

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

  19. 25
    Acción

    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
    Acción

    `moduleid`: Identifier for the NSM module

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

  21. 27
    Acción

    `digest`: Hashing algorithm (SHA-384)

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

  22. 28
    Acción

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

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

  23. 29
    Acción

    `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
    Acción

    `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
    Acción

    `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
    Entrada

    `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
    Acción

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

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

  28. 34
    Acción

    `nonce`: Optional nonce for freshness verification

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

  29. 35
    Acción

    Validation steps:

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

  30. 36
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Salida

    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
    Decisión

    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
    Acción

    Attestation validation code:

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

  38. 44
    Acción

    Step 6: Launch and Monitor the Enclave

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

  39. 45
    Acción

    Run the enclave and implement operational monitoring:

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

  40. 46
    Acción

    Launch the enclave:

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

  41. 47
    Acción

    Verify enclave status:

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

  42. 48
    Entrada

    Read enclave console (debug mode only):

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

  43. 49
    Acción

    Terminate the enclave:

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

  44. 50
    Salida

    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
    Acción

    Key Concepts

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

  46. 52
    Acción

    Tools & Systems

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

  47. 53
    Acción

    Common Scenarios

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

  48. 54
    Acción

    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
    Salida

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Acción

    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
    Salida

    Output Format

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

Posibles superficies de riesgo

Los hallazgos estáticos señalan puntos que conviene revisar antes de instalar. No establecen que una skill sea segura, maliciosa ni eficaz.

Se recomienda atención

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.

Acceso a la redObservado
Escrituras de archivosObservado
Uso de credencialesNo observado
Media

Network access is mentioned

3 ocurrencias

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.

Nota

File modification is described or implemented

16 ocurrencias

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.

Alta

Elevated privileges are referenced

7 ocurrencias

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.

Dónde puede consumirse el contexto

Las capas de descubrimiento, activación y recursos tienen significados distintos. Los valores exactos solo aparecen cuando el método oficial de recuento se ejecutó con un modelo identificado.

Recuento exacto de tokens no disponible

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

No se registró ninguna medición de tokens con el método oficial requerido. Este dosier no la sustituye por recuentos de caracteres, tamaños de archivo ni estimaciones.

Evaluación controlada

Sin evaluación controlada

Esta skill solo cuenta con las evidencias indicadas arriba. No se afirma ninguna tasa de éxito, eficiencia de tokens, latencia ni ventaja de calidad.

Sin probar

Úsala con el código fuente a la vista

Comando de instalación
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.

Requisitos previos

  • 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.

Prompts de ejemplo

No proporcionado

Una decisión, con sus límites

Fortalezas

  • 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]

Aspectos a considerar

  • No functional, security, or model-quality result has been established. Inspect source context and all cited findings before installation or publication.
Conclusión de la investigación

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

Trazable por construcción

El dosier es una lectura acotada en el tiempo de un artefacto público, no un respaldo. Usa el enlace al código fuente para inspeccionar el material original exacto.

mukul975Anthropic-Cybersecurity-Skillsskills/implementing-aws-nitro-enclave-security
Tipo de origen
Comunidad
Commit
54a798831d2266a3ca61ce68a7acb80b81160d57
Recopilado
20 nov 2026
Última comprobación
20 nov 2026
Licencia original
Apache-2.0
Estrellas del repositorio
36.446
Base del contenido

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.