@vesviet/agent-skills 5.7.3 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INDEX.md +21 -18
- package/README.md +11 -10
- package/VERSION +1 -1
- package/adapters/antigravity/ANTIGRAVITY.md +89 -4
- package/adapters/antigravity/INDEX_TIER1.json +1294 -0
- package/adapters/antigravity/a2a-config.template.yaml +22 -8
- package/adapters/antigravity/role-skill-index.json +48 -19
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/adapters/claude/settings.template.json +7 -3
- package/adapters/cursor/hooks.template.json +3 -1
- package/core/contracts/README.md +4 -1
- package/core/contracts/schemas/INDEX.md +7 -1
- package/core/contracts/schemas/a2a-artifact.json +9 -2
- package/core/contracts/schemas/a2a-jsonrpc-envelope.json +7 -2
- package/core/contracts/schemas/a2a-task-progress.json +15 -4
- package/core/contracts/schemas/a2a-task.json +11 -3
- package/core/contracts/schemas/agent-card.json +48 -1
- package/core/contracts/schemas/agent-skills-discovery.json +91 -0
- package/core/contracts/schemas/compliance-report.json +255 -0
- package/core/contracts/schemas/mcp-server-card.json +193 -0
- package/core/contracts/schemas/seo-content-brief.json +1 -1
- package/core/contracts/schemas/seo-weekly-board.json +1 -1
- package/core/contracts/schemas/series-article.json +1 -1
- package/core/policies/action-boundaries.yaml +334 -2
- package/core/policies/mcp-tool-map.yaml +61 -4
- package/core/roles/3d-graphics-engineer.md +5 -1
- package/core/roles/README.md +1 -1
- package/core/roles/agent-coordinator.md +21 -3
- package/core/roles/agent-discovery-engineer.md +27 -8
- package/core/roles/ai-systems-engineer.md +3 -1
- package/core/roles/aws-engineer.md +6 -8
- package/core/roles/backend-developer.md +5 -5
- package/core/roles/business-analyst.md +4 -2
- package/core/roles/cloudflare-engineer.md +4 -2
- package/core/roles/content-manager.md +3 -1
- package/core/roles/content-writer.md +3 -1
- package/core/roles/data-analyst.md +3 -1
- package/core/roles/data-engineer.md +3 -1
- package/core/roles/devops-engineer.md +9 -9
- package/core/roles/ecommerce-engineer.md +7 -7
- package/core/roles/frontend-developer.md +10 -8
- package/core/roles/game-developer.md +5 -3
- package/core/roles/mmo-engineer.md +8 -9
- package/core/roles/mobile-engineer.md +5 -3
- package/core/roles/product-manager.md +8 -9
- package/core/roles/project-manager.md +10 -13
- package/core/roles/prompt-engineer.md +6 -4
- package/core/roles/qa-engineer.md +9 -9
- package/core/roles/references/vietnam-accounting-specialist-review-checklist.md +6 -6
- package/core/roles/researcher.md +12 -14
- package/core/roles/reverse-engineer.md +5 -2
- package/core/roles/reviewer.md +7 -5
- package/core/roles/role-standard.md +23 -1
- package/core/roles/sdet.md +7 -5
- package/core/roles/security-engineer.md +9 -7
- package/core/roles/seo-analyst.md +9 -7
- package/core/roles/solution-architect.md +8 -9
- package/core/roles/sre.md +8 -6
- package/core/roles/system-engineer.md +20 -20
- package/core/roles/task-planner.md +8 -10
- package/core/roles/teacher.md +8 -6
- package/core/roles/technical-architect.md +10 -8
- package/core/roles/technical-lead.md +9 -7
- package/core/roles/technical-writer.md +8 -6
- package/core/roles/ui-ux-designer.md +8 -7
- package/core/roles/vietnam-accounting-specialist.md +26 -24
- package/core/roles/vietnam-legal-counsel.md +6 -4
- package/core/rules/code.md +11 -6
- package/core/skills/README.md +3 -2
- package/core/skills/agent/agent-a2a-protocol/SKILL.md +25 -93
- package/core/skills/agent/agent-memory-compaction/SKILL.md +27 -0
- package/core/skills/agent/architect-mcp-server/SKILL.md +35 -27
- package/core/skills/agent/configure-agent-commerce/SKILL.md +2 -0
- package/core/skills/agent/configure-agent-commerce/examples/ucp-commerce-manifest-and-endpoints.json +55 -0
- package/core/skills/agent/configure-agent-commerce/references/acp-ucp-agent-commerce-manifest-specs.md +66 -0
- package/core/skills/agent/configure-agent-skills/SKILL.md +60 -68
- package/core/skills/agent/manage-agent-identity/SKILL.md +2 -0
- package/core/skills/agent/manage-agent-identity/examples/agent-identity-spire-workload.yaml +72 -0
- package/core/skills/agent/manage-agent-identity/references/nhi-lifecycle-and-token-rotation.md +45 -0
- package/core/skills/ai/openrouter-task/SKILL.md +5 -5
- package/core/skills/ai-agent/agent-evaluation/resources/eval-benchmarks/eval-cases.json +529 -0
- package/core/skills/ai-agent/agent-evaluation/resources/eval-benchmarks/eval-manifest.yaml +61 -0
- package/core/skills/ai-agent/agent-evaluation/scripts/run-eval-benchmark.py +856 -0
- package/core/skills/ai-agent/agent-evaluation/tests/test_golden_benchmarks.py +248 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +61 -60
- package/core/skills/ai-agent/context-optimization/examples/context-pruner-and-reorderer.py +85 -0
- package/core/skills/ai-agent/context-optimization/references/token-budgeting-and-attention-allocation.md +47 -0
- package/core/skills/ai-agent/memory-hygiene/SKILL.md +13 -0
- package/core/skills/ai-agent/memory-hygiene/examples/memory-audit-and-compaction-routine.py +90 -0
- package/core/skills/ai-agent/memory-hygiene/references/agent-memory-vault-spec.md +137 -0
- package/core/skills/ai-agent/memory-hygiene/references/owasp-asi06-and-memory-poisoning-defense.md +38 -0
- package/core/skills/backend/add-api-endpoint/examples/express-zod-rfc9457-endpoint.md +329 -0
- package/core/skills/backend/add-api-endpoint/examples/kratos-go-clean-architecture-endpoint.md +405 -0
- package/core/skills/backend/add-api-endpoint/references/idempotency-and-rate-limiting.md +116 -0
- package/core/skills/backend/add-event-handler/SKILL.md +1 -1
- package/core/skills/backend/scaffold-new-service/SKILL.md +2 -1
- package/core/skills/backend/scaffold-new-service/references/deep-modules-and-seams.md +43 -0
- package/core/skills/business/elicit-requirements/SKILL.md +1 -0
- package/core/skills/commerce/handle-checkout-flow/SKILL.md +3 -1
- package/core/skills/commerce/handle-checkout-flow/examples/production-checkout-orchestrator.ts +185 -0
- package/core/skills/commerce/handle-checkout-flow/references/pci-dss-v4-and-agentic-checkout-specs.md +72 -0
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +3 -1
- package/core/skills/commerce/integrate-payment-gateway/examples/resilient-webhook-and-mpp-handler.ts +164 -0
- package/core/skills/commerce/integrate-payment-gateway/references/mpp-x402-and-webhook-security-specs.md +47 -0
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +3 -1
- package/core/skills/commerce/manage-order-fulfillment/examples/temporal-fulfillment-saga.ts +104 -0
- package/core/skills/commerce/manage-order-fulfillment/references/event-sourced-fulfillment-and-carrier-webhooks.md +58 -0
- package/core/skills/commerce/manage-product-catalog/SKILL.md +3 -1
- package/core/skills/commerce/manage-product-catalog/examples/hybrid-search-and-governance-pipeline.ts +120 -0
- package/core/skills/commerce/manage-product-catalog/references/semantic-vector-catalog-and-graphrag.md +54 -0
- package/core/skills/content/write-article/SKILL.md +1 -1
- package/core/skills/document/pdf/SKILL.md +1 -0
- package/core/skills/document/pdf/references/pdf-acroforms-and-pdfplumber-specs.md +54 -0
- package/core/skills/document/pdf/scripts/check_fillable_fields.py +144 -0
- package/core/skills/document/pdf/scripts/fill_fillable_fields.py +145 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +2 -0
- package/core/skills/documentation/configure-llms-txt/examples/canonical-llms-txt-and-full-txt.md +45 -0
- package/core/skills/documentation/configure-llms-txt/references/llms-txt-and-llms-full-txt-standard.md +37 -0
- package/core/skills/documentation/write-documentation/SKILL.md +3 -1
- package/core/skills/documentation/write-documentation/examples/microservice-production-readme-and-api-docs.md +70 -0
- package/core/skills/documentation/write-documentation/references/diataxis-framework-and-doc-standards.md +62 -0
- package/core/skills/foundation/ai-risk-assessment/SKILL.md +3 -5
- package/core/skills/foundation/ai-risk-assessment/examples/genai-system-risk-register.md +67 -0
- package/core/skills/foundation/ai-risk-assessment/references/nist-ai-rmf-and-eu-ai-act-taxonomy.md +49 -0
- package/core/skills/foundation/conduct-research/SKILL.md +1 -1
- package/core/skills/foundation/discernment-nudge/SKILL.md +1 -0
- package/core/skills/foundation/plan-technical-delivery/SKILL.md +2 -1
- package/core/skills/foundation/release-notes/SKILL.md +2 -3
- package/core/skills/foundation/release-notes/examples/enterprise-platform-release-notes.md +42 -0
- package/core/skills/foundation/release-notes/references/keep-a-changelog-and-semver-governance.md +43 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +5 -0
- package/core/skills/foundation/write-tests/examples/anti-tautological-tdd-walkthrough.md +204 -0
- package/core/skills/foundation/write-tests/examples/testcontainers-kratos-integration-test.md +186 -0
- package/core/skills/foundation/write-tests/references/contract-and-chaos-testing.md +187 -0
- package/core/skills/frontend/INDEX.json +16 -0
- package/core/skills/frontend/add-page-route/SKILL.md +3 -1
- package/core/skills/frontend/add-page-route/examples/streaming-rsc-page-with-view-transition.tsx +133 -0
- package/core/skills/frontend/add-page-route/references/rsc-routing-and-view-transitions.md +72 -0
- package/core/skills/frontend/add-ui-component/SKILL.md +3 -1
- package/core/skills/frontend/add-ui-component/examples/compound-dialog-and-form-actions.tsx +193 -0
- package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +55 -0
- package/core/skills/frontend/component-composition/SKILL.md +2 -1
- package/core/skills/frontend/component-composition/examples/headless-combobox-compound-component.tsx +207 -0
- package/core/skills/frontend/frontend-testing/SKILL.md +3 -1
- package/core/skills/frontend/frontend-testing/examples/playwright-e2e-with-msw-and-axe.spec.ts +87 -0
- package/core/skills/frontend/frontend-testing/references/playwright-msw-and-a11y-testing-standards.md +78 -0
- package/core/skills/frontend/implement-ai-disclosure/SKILL.md +118 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +3 -1
- package/core/skills/frontend/implement-webmcp/examples/webmcp-provider-and-hitl-modal.tsx +163 -0
- package/core/skills/frontend/implement-webmcp/references/webmcp-architecture-and-hitl-security.md +48 -0
- package/core/skills/frontend/integrate-api-client/SKILL.md +3 -1
- package/core/skills/frontend/integrate-api-client/examples/orval-query-and-streaming-mutation.ts +102 -0
- package/core/skills/frontend/integrate-api-client/references/orval-tanstack-query-and-streaming-specs.md +57 -0
- package/core/skills/frontend/setup-design-system/SKILL.md +3 -1
- package/core/skills/frontend/setup-design-system/examples/tailwind-v4-theme-and-dtcg-tokens.css +87 -0
- package/core/skills/frontend/setup-design-system/references/tailwind-v4-oklch-and-dtcg-tokens.md +61 -0
- package/core/skills/frontend/setup-visual-regression/SKILL.md +3 -1
- package/core/skills/frontend/setup-visual-regression/examples/visual-regression-playwright.config.ts +83 -0
- package/core/skills/frontend/setup-visual-regression/references/visual-regression-docker-and-masking-specs.md +46 -0
- package/core/skills/gamedev/abstract-input-actions/SKILL.md +2 -0
- package/core/skills/gamedev/abstract-input-actions/examples/input-action-manager.ts +85 -0
- package/core/skills/gamedev/abstract-input-actions/references/action-mapping-and-analog-deadzones.md +54 -0
- package/core/skills/gamedev/architect-ecs-systems/SKILL.md +2 -0
- package/core/skills/gamedev/architect-ecs-systems/examples/bevy-flecs-combat-system.rs +73 -0
- package/core/skills/gamedev/architect-ecs-systems/references/data-oriented-design-and-archetype-ecs.md +39 -0
- package/core/skills/gamedev/author-game-ai/SKILL.md +2 -0
- package/core/skills/gamedev/author-game-ai/examples/modular-behavior-tree-ai.ts +98 -0
- package/core/skills/gamedev/author-game-ai/references/behavior-trees-and-utility-ai-curves.md +47 -0
- package/core/skills/gamedev/configure-physics-collision/SKILL.md +2 -0
- package/core/skills/gamedev/configure-physics-collision/examples/kinematic-physics-substepping.cpp +100 -0
- package/core/skills/gamedev/configure-physics-collision/references/continuous-collision-detection-and-substepping.md +50 -0
- package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +2 -0
- package/core/skills/gamedev/develop-gameplay-systems/examples/kinematic-character-controller.gd +86 -0
- package/core/skills/gamedev/develop-gameplay-systems/references/deterministic-gameplay-state-machines.md +42 -0
- package/core/skills/gamedev/implement-save-persistence/SKILL.md +2 -0
- package/core/skills/gamedev/implement-save-persistence/examples/versioned-save-manager.ts +127 -0
- package/core/skills/gamedev/implement-save-persistence/references/versioned-save-schemas-and-checksums.md +44 -0
- package/core/skills/gamedev/render-webgl-threejs/SKILL.md +2 -0
- package/core/skills/gamedev/render-webgl-threejs/examples/production-threejs-webgpu-scene.ts +116 -0
- package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +56 -0
- package/core/skills/mmo/analyze-campaign-roi/SKILL.md +2 -0
- package/core/skills/mmo/analyze-campaign-roi/examples/campaign-roi-and-roas-dashboard.py +80 -0
- package/core/skills/mmo/analyze-campaign-roi/references/multi-touch-attribution-and-cpa-analytics.md +33 -0
- package/core/skills/mmo/create-automation-script/SKILL.md +2 -0
- package/core/skills/mmo/create-automation-script/examples/stealth-browser-automation-flow.ts +65 -0
- package/core/skills/mmo/create-automation-script/references/stealth-cdp-and-behavioral-mimicry.md +37 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +2 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/examples/proxy-health-probe-and-rotation-daemon.py +75 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/references/proxy-pool-rotation-and-anti-detect-specs.md +45 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +2 -0
- package/core/skills/mmo/deploy-proxyware-fleet/examples/docker-compose-depin-light-node-fleet.yaml +52 -0
- package/core/skills/mmo/deploy-proxyware-fleet/references/depin-bandwidth-monetization-node-specs.md +43 -0
- package/core/skills/mmo/generate-mmo-content/SKILL.md +2 -0
- package/core/skills/mmo/generate-mmo-content/examples/pseo-programmatic-page-generator.ts +76 -0
- package/core/skills/mmo/generate-mmo-content/references/pseo-landing-pages-and-social-video-hooks.md +39 -0
- package/core/skills/mmo/manage-mmo-assets/SKILL.md +2 -0
- package/core/skills/mmo/manage-mmo-assets/examples/mmo-asset-vault-manager.py +63 -0
- package/core/skills/mmo/manage-mmo-assets/references/mmo-asset-rbac-and-vault-isolation.md +38 -0
- package/core/skills/mmo/setup-tracking-system/SKILL.md +2 -0
- package/core/skills/mmo/setup-tracking-system/examples/meta-capi-s2s-event-dispatcher.ts +79 -0
- package/core/skills/mmo/setup-tracking-system/references/server-to-server-postback-and-capi-specs.md +45 -0
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -0
- package/core/skills/platform/add-telemetry-instrumentation/examples/kratos-otel-middleware-instrumentation.go +87 -0
- package/core/skills/platform/add-telemetry-instrumentation/references/opentelemetry-semantic-conventions-2026.md +37 -0
- package/core/skills/platform/aws-infrastructure/SKILL.md +2 -0
- package/core/skills/platform/aws-infrastructure/examples/opentofu-eks-pod-identity-vpc.tf +101 -0
- package/core/skills/platform/aws-infrastructure/references/opentofu-aws-zero-trust-and-irsa.md +40 -0
- package/core/skills/platform/setup-deployment/SKILL.md +4 -0
- package/core/skills/platform/setup-deployment/examples/kustomize-production-service-manifests.yaml +123 -0
- package/core/skills/platform/setup-deployment/references/interactive-hitl-wizard.md +55 -0
- package/core/skills/platform/setup-deployment/references/k8s-gitops-and-kustomize-invariants.md +40 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +2 -0
- package/core/skills/platform/supply-chain-security/examples/github-actions-sbom-cosign.yaml +57 -0
- package/core/skills/platform/supply-chain-security/references/slsa-provenance-and-sbom-sigstore.md +60 -0
- package/core/skills/product/build-story-map/SKILL.md +2 -0
- package/core/skills/repo-ops/review-code/SKILL.md +2 -2
- package/core/skills/repo-ops/review-code/examples/adversarial-two-axis-pr-review.md +167 -0
- package/core/skills/repo-ops/review-code/examples/ai-vibe-slop-remediation.md +220 -0
- package/core/skills/repo-ops/review-code/references/supply-chain-and-migration-safety.md +103 -0
- package/core/skills/repo-ops/review-service/SKILL.md +1 -1
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -1
- package/core/skills/security-data/manage-secrets/SKILL.md +2 -0
- package/core/skills/security-data/manage-secrets/examples/external-secrets-vault-crds.yaml +53 -0
- package/core/skills/security-data/manage-secrets/references/zero-trust-secret-rotation-and-eso.md +30 -0
- package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +7 -7
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +2 -0
- package/core/skills/security-data/prompt-injection-defense/examples/bounded-tool-execution-wrapper.py +78 -0
- package/core/skills/security-data/prompt-injection-defense/references/prompt-injection-taxonomy-and-delimiters.md +37 -0
- package/core/skills/security-data/reverse-engineer-binary/SKILL.md +2 -0
- package/core/skills/security-data/reverse-engineer-binary/examples/binary-triage-and-vulnerability-dossier.md +58 -0
- package/core/skills/security-data/reverse-engineer-binary/references/ghidra-radare2-and-rea-evidence-ledgers.md +43 -0
- package/core/skills/security-data/security-audit/SKILL.md +3 -1
- package/core/skills/security-data/security-audit/examples/enterprise-service-security-audit-report.md +54 -0
- package/core/skills/security-data/security-audit/references/owasp-asi-and-cvss4-threat-modeling.md +39 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +2 -0
- package/core/skills/security-data/skill-preflight-ast-check/references/ast-lethal-trifecta-and-static-vetting.md +38 -0
- package/core/skills/security-data/skill-preflight-ast-check/scripts/scan-skill-ast.py +127 -0
- package/overlays/README.md +1 -1
- package/overlays/security-research/README.md +1 -1
- package/package.json +2 -2
- package/overlays/security-research/skills/reverse-engineer-binary/SKILL.md +0 -129
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: reverse-engineer-binary
|
|
3
|
-
description: Use when deconstructing compiled binaries, Electron bundles, and firmware images in air-gapped sandboxes to produce structured REA evidence ledgers.
|
|
4
|
-
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_build, execute_command, run_tests]
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Reverse Engineer Binary
|
|
8
|
-
|
|
9
|
-
Deconstruct compiled executables, Electron packages, and firmware images in air-gapped sandboxes using Ghidra, radare2, and unpacking toolchains to generate verifiable REA evidence ledgers.
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
|
|
13
|
-
- Auditing third-party compiled binaries or closed-source dependencies for security vulnerabilities
|
|
14
|
-
- Unpacking Electron desktop bundles (`.asar`) to inspect embedded JavaScript application logic
|
|
15
|
-
- Extracting hardcoded API tokens, cryptographic credentials, and network endpoints from executables
|
|
16
|
-
- Triage of suspicious binaries, malicious firmware blobs, or supply-chain drop-in libraries
|
|
17
|
-
- Producing defensible Reverse Engineering Artifact (REA) evidence reports for security audits
|
|
18
|
-
|
|
19
|
-
## Core Rules
|
|
20
|
-
|
|
21
|
-
- **Defensive Ethics Invariant**: Reverse engineering is restricted strictly to vulnerability discovery, defensive auditing, malware analysis, and interoperability research. DRM circumvention, license key generation, and exploit authoring are strictly prohibited.
|
|
22
|
-
- **Source Code Presence Guard**: If readable source code is present in the repository, bypass this reverse engineering skill entirely and audit source code directly using standard code analysis tools.
|
|
23
|
-
- **Mandatory Sandbox Confinement**: Never execute or decompile untrusted binaries directly on the host machine. All analysis must execute inside Tier 2 (hardened OCI/gVisor container with `--read-only`, `--network=none`, `CAP_DROP=ALL`) or Tier 3 (Firecracker microVM).
|
|
24
|
-
- **Network Air-Gap**: The analysis environment must have `--network=none` active at all times. Network egress during binary inspection is strictly forbidden.
|
|
25
|
-
- **Triage Toolchain Hierarchy**:
|
|
26
|
-
- Electron / JS packages: Unpack using `asar` and run static AST analysis
|
|
27
|
-
- Native binaries: Run static header triage, strings extraction (`rabin2 -z`), symbol recovery (`rabin2 -i`), followed by headless Ghidra or radare2 decompilation
|
|
28
|
-
- **Verifiable REA Ledger**: Every analysis must produce a structured REA evidence ledger recording artifact hashes, decompiler tool versions, discovered entry points, and vulnerability findings.
|
|
29
|
-
|
|
30
|
-
## Suggested Process
|
|
31
|
-
|
|
32
|
-
### 1. Ingest Artifact and Verify Boundaries
|
|
33
|
-
- Compute cryptographic checksums: SHA-256 and MD5 hashes of target binary artifact.
|
|
34
|
-
- Check repository context for human-readable source code; if source exists, abort reverse engineering and switch to source code review.
|
|
35
|
-
- Confirm target scope aligns with defensive audit, vulnerability research, or supply chain verification.
|
|
36
|
-
|
|
37
|
-
### 2. Initialize Air-Gapped Sandbox Environment
|
|
38
|
-
- Launch Tier 2 hardened OCI container with read-only root (`--read-only`), dropped capabilities (`--cap-drop=ALL`), non-root UID (`10001:10001`), and network air-gap (`--network=none`).
|
|
39
|
-
- Mount target binary into sandboxed scratch workspace with `noexec` flags when performing static disassembly.
|
|
40
|
-
- Set process limits (memory $\le 2\text{GB}$, CPU $\le 2.0$, PIDs $\le 64$).
|
|
41
|
-
|
|
42
|
-
### 3. Conduct Decompiler Triage
|
|
43
|
-
- **For Electron / Node packages**:
|
|
44
|
-
- Execute `npx asar extract <file>.asar <dest_dir>` to recover source tree.
|
|
45
|
-
- Review `package.json` dependencies and scan JS code for dynamic `eval` or remote script loaders.
|
|
46
|
-
- **For Native Binaries (ELF, PE, Mach-O)**:
|
|
47
|
-
- Run binary header classification (`file`, `rabin2 -I`) to determine architecture, bitness, and section entropy.
|
|
48
|
-
- Extract ASCII and UTF-16 strings (`rabin2 -z`, `rabin2 -zz`) to locate URLs, IPs, file paths, and credentials.
|
|
49
|
-
- Map external imports (`rabin2 -i`) and exported symbols (`rabin2 -E`) to understand system call surfaces.
|
|
50
|
-
- Launch headless Ghidra script or radare2 (`r2 -c 'aaa; pdc'`) on target function addresses.
|
|
51
|
-
|
|
52
|
-
### 4. Synthesize REA Evidence Ledger
|
|
53
|
-
- Record binary metadata: filename, byte size, SHA-256 hash, architecture, compiler signature, and packing status.
|
|
54
|
-
- Document discovered entry points, API call sequences, and cryptographic constants.
|
|
55
|
-
- Detail identified vulnerabilities with memory offset addresses, assembly snippets, and CWE/CVSS classifications.
|
|
56
|
-
- Formulate actionable defensive mitigations and patch recommendations.
|
|
57
|
-
|
|
58
|
-
### 5. Review Findings and Secure Cleanup
|
|
59
|
-
- Validate that all findings are accompanied by exact binary offsets and decompiled evidence snippets.
|
|
60
|
-
- Ensure the ephemeral sandbox container is terminated and temporary scratch volumes are purged.
|
|
61
|
-
|
|
62
|
-
## Output Format
|
|
63
|
-
|
|
64
|
-
Outputs must format the analysis results into a structured REA evidence ledger:
|
|
65
|
-
|
|
66
|
-
```markdown
|
|
67
|
-
# <Artifact Name> - Reverse Engineering Evidence Ledger
|
|
68
|
-
|
|
69
|
-
## Artifact Identification
|
|
70
|
-
- Filename: <binary_name> | Byte Size: <bytes>
|
|
71
|
-
- SHA-256: <64-character-hex-hash>
|
|
72
|
-
- Architecture: <e.g. x86_64, ARM64, WebAssembly>
|
|
73
|
-
- Compiler / Packer: <detected toolchain or "Unpacked">
|
|
74
|
-
|
|
75
|
-
## Environment & Provenance
|
|
76
|
-
- Sandbox Tier: Tier 2 (OCI / gVisor) | Network: Air-gapped (--network=none)
|
|
77
|
-
- Toolchain: Ghidra Headless <version> / radare2 <version>
|
|
78
|
-
|
|
79
|
-
## Attack Surface Inventory
|
|
80
|
-
- Imported Libraries: <list of DLLs or shared objects>
|
|
81
|
-
- Sensitive Strings / Endpoints: <extracted URLs, IPs, paths>
|
|
82
|
-
- Exported API Surface: <callable functions>
|
|
83
|
-
|
|
84
|
-
## Vulnerability & Defect Matrix
|
|
85
|
-
| Offset | Category | Severity | Root Cause | Remediation |
|
|
86
|
-
| :--- | :--- | :--- | :--- | :--- |
|
|
87
|
-
| `0x004012A0` | CWE-120 Buffer Overflow | High (CVSS 7.8) | Unbounded `strcpy` | Replace with bounded copy |
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## Failure Modes
|
|
91
|
-
|
|
92
|
-
- **Host execution leak**: Running an untrusted binary or dynamic tracer outside a sandbox risks host compromise. **Mitigation**: Strictly mandate Tier 2/3 container isolation with dropped capabilities and noexec mounts.
|
|
93
|
-
- **Decompiling existing source code**: Spending agent compute reverse engineering binaries when source code is already present. **Mitigation**: Enforce Source Code Presence Guard in step 1.
|
|
94
|
-
- **Network egress during analysis**: Decompilation toolchains phoning home or triggering network beacons embedded in malware. **Mitigation**: Enforce `--network=none` air-gap at the container runtime level.
|
|
95
|
-
- **Unverified assembly assertions**: Stating a binary is vulnerable without providing exact offset addresses and instruction disassembly. **Mitigation**: Require proof offsets in the REA evidence ledger.
|
|
96
|
-
|
|
97
|
-
## Output Contracts
|
|
98
|
-
|
|
99
|
-
When completing binary analysis or decompilation triage, emit:
|
|
100
|
-
|
|
101
|
-
- Structured REA evidence ledger markdown document following the Output Format template.
|
|
102
|
-
- If reporting security vulnerabilities, companion artifact must adhere to `contracts/schemas/security-audit.json`.
|
|
103
|
-
|
|
104
|
-
## Security Guardrails (OWASP ASI)
|
|
105
|
-
|
|
106
|
-
- **ASI05 Sandbox Escape Guard**: Never enable Docker socket forwarding or privileged container flags (`--privileged`) during reverse engineering tasks.
|
|
107
|
-
- **ASI06 Binary Data Guard**: Do not output raw unescaped binary bytes or shellcode sequences into user-facing chat logs.
|
|
108
|
-
|
|
109
|
-
## Checklist
|
|
110
|
-
|
|
111
|
-
- [ ] Defensive audit or vulnerability research authorization confirmed.
|
|
112
|
-
- [ ] Source code presence checked; skipped reverse engineering if source code is present.
|
|
113
|
-
- [ ] Cryptographic hashes (SHA-256 and MD5) calculated and recorded.
|
|
114
|
-
- [ ] Tier 2/3 sandbox container initialized with `--read-only` and `CAP_DROP=ALL`.
|
|
115
|
-
- [ ] Network air-gap verified active (`--network=none`).
|
|
116
|
-
- [ ] Binary architecture, compiler signature, and entropy evaluated.
|
|
117
|
-
- [ ] Sensitive strings, URLs, IPs, and API keys extracted and cataloged.
|
|
118
|
-
- [ ] Dynamic library imports and exported symbol tables mapped.
|
|
119
|
-
- [ ] Critical functions decompiled using headless Ghidra or radare2.
|
|
120
|
-
- [ ] REA evidence ledger populated with exact memory offsets and remediation advice.
|
|
121
|
-
- [ ] Ephemeral sandbox container destroyed upon completion.
|
|
122
|
-
|
|
123
|
-
## Related Skills
|
|
124
|
-
|
|
125
|
-
- **security-audit**: Conduct end-to-end vulnerability assessments and CVSS scoring
|
|
126
|
-
- **supply-chain-security**: Verify dependencies, signatures, and package hashes
|
|
127
|
-
- **manage-secrets**: Isolate, rotate, and secure leaked API keys or credentials found in binaries
|
|
128
|
-
- **systematic-debugging**: Formulate testable hypotheses when tracing control flow defects
|
|
129
|
-
- **review-code**: Audit decompiled C/C++ pseudo-code or unpacked JavaScript for security flaws
|