Skip to content

Security: karany97/destiny

SECURITY.md

Security Policy & Coordinated Vulnerability Disclosure — Destiny

Nandai Lab (British Columbia, Canada · https://nandai.org) treats the security of Destiny Web Studio (https://nandai.org/workspace/), the 10 Zero-Upload Browser Apps (https://nandai.org/apps/), Destiny Studio for Apple Silicon, its Destiny OS (<128 MB) EROFS sandbox, cryptographic release pipeline, and CLI verification tooling with the highest priority.


1. Compliance & Release Disclosures

  • Organization: Nandai Lab (British Columbia, Canada · https://nandai.org)
  • ISO/IEC Alignment Notice: Engineered for Alignment with ISO/IEC 27001 (ISMS), ISO/IEC 27701 (PIMS), and ISO/IEC 42001 (AI Management) Controls — Independent Third-Party Audit Pending.
  • Platform Availability Status: Destiny Web Studio (https://nandai.org/workspace/) and all 10 Zero-Upload Browser Apps (https://nandai.org/apps/) are live today. Native macOS Apple Silicon desktop builds are in Signed Preview (https://nandai.org/studio) while Apple Developer Organization notarization stapling completes.
  • Contacts: Security: security@nandai.org · Founder: karan@nandai.org · Support: support@nandai.org · Legal: legal@nandai.org · Privacy: privacy@nandai.org

2. Reporting a Vulnerability (GitHub PVR Primary)

Please DO NOT report security vulnerabilities through public GitHub Issues, Discussions, or Pull Requests.

Primary Channel: GitHub Private Vulnerability Reporting (PVR)

  1. Navigate to https://github.com/karany97/destiny/security/advisories/new (the Security tab of this repository on GitHub).
  2. Click Report a vulnerability.
  3. Provide:
    • Affected component and exact version / SHA-256 hash (nandai.org/workspace/, nandai.org/apps/, Destiny.app, Destiny OS EROFS image, cli/destiny-verify.sh, or schema/update endpoint).
    • Detailed reproduction steps or minimal proof of concept.
    • Impact assessment (e.g., Virtualization.framework or App Sandbox escape, Keychain exposure, update verification bypass, XSS/CSP bypass, Metal/GGUF memory corruption).
    • Your preferred attribution handle (or request for anonymity).

Fallback Channel: Encrypted Email

If GitHub Private Vulnerability Reporting is unavailable, email security@nandai.org (or karan@nandai.org for routing confirmation without sensitive payload details).

  • Encrypt sensitive details using our PGP key published at https://nandai.org/.well-known/security.txt (do not send unencrypted zero-day payloads or credentials).

3. EU Cyber Resilience Act (CRA) Article 14 Response Readiness

Our security response cadence is structured to align with Regulation (EU) 2024/2847 (Cyber Resilience Act) Article 14 notification and remediation discipline:

Milestone SLA Target Actions Taken
Stage 1 — Early Warning & Triage <= 24 hours Acknowledge receipt via GitHub PVR / encrypted email; validate reproducibility; assess active exploitation risk and assign incident lead; prepare CSIRT/ENISA early-warning posture where applicable for actively exploited vulnerabilities.
Stage 2 — Vulnerability Assessment <= 72 hours Complete technical root-cause analysis; assign CVSS v4.0 / v3.1 severity score; identify all affected versions and components via our CycloneDX SBOM (*.cdx.json); provide preliminary user mitigation or workaround guidance.
Stage 3 — Remediation & Final Report <= 14 days (expedited for Critical/High) Ship remediated web update and/or signed & notarized desktop release (Developer ID + Sparkle EdDSA + SHA-256 + GitHub Build Provenance Attestation); publish coordinated GitHub Security Advisory / CVE details; issue final post-incident assessment.

Complex multi-component vulnerabilities requiring upstream SDK coordination may receive an agreed disclosure extension with the reporter, accompanied by a status update every 7 days.


4. Binary Integrity, Keychain, Sandboxing & Checksum Guidelines

For End Users & Enterprise Administrators

  1. Verify Every Release Archive Before Launching:
    • Verify the SHA-256 digest against release/SHA256SUMS.txt.
    • Verify the SLSA / GitHub build provenance attestation via gh attestation verify.
    • Verify the Apple Developer ID signature (codesign -vvv --strict --deep) and Gatekeeper assessment (spctl -a -vvv -t exec), or run cli/destiny-verify.sh.
    • Never bypass macOS Gatekeeper warnings (xattr -cr) on unverified or tampered binaries.
  2. Automatic Updates:
    • Destiny uses Sparkle 2 over HTTPS with EdDSA (Ed25519) package signature verification against https://nandai.org/api/v1/updates/appcast.xml. Unsigned or mismatched update archives are rejected automatically before extraction.
  3. API Keys, Cryptographic Vaults, Payments & Security Sentinel:
    • Optional external API credentials and local secrets are protected inside fail-closed macOS Keychain & biometric AES-GCM vaults (SecItemAdd / kSecAttrAccessibleAfterFirstUnlock), paired with PBKDF2-HMAC-SHA256 / Curve25519 passkey protection and strict W3C WebAuthn (P-256 / Ed25519) verification where enabled. Never store API tokens in shell profile files, environment dumps, or bug reports.
    • Security Sentinel provides live /usr/sbin/lsof process socket monitoring, one-click strict Air-Gap Mode, AST Prompt-Injection Defense, and CycloneDX 1.6 SBOM inspection inside the desktop workspace.
    • Paid billing uses Stripe Hosted Checkout (SAQ A) exclusively; Destiny never processes or stores card numbers, CVCs, or Stripe secret keys.
  4. Destiny OS v2 (<128 MB) Micro-VM Isolation:
    • Isolated micro-sandbox workloads run inside Destiny OS v2 (27.77 MiB / 29,116,867 B combined base image: 24.46 MB Linux 7.3.4-1 SCHED_BORE kernel sha256:665405589c15fb9539a37d947da075e55a61cbdbde7c0ddd76ce3247a39946a1 + 4.59 MB Alpine 3.24.4 erofs-4k-zstd read-only rootfs sha256:f57680651258e6ad855e5858c8c4436cec284da6802d61a75d205ac71613ca0b) executed via Apple Virtualization.framework (com.apple.security.virtualization).
    • Host-guest control uses AF_VSOCK port 5500 (destiny-guestd NDJSON-RPC, host CID 2) under a 128 MB hardware VM RAM ceiling (~105 MB live MemTotal) with zero TCP/IP egress.

For Repository Contributors

  • Never commit .p12 certificates, .p8 App Store Connect keys, Ed25519 Sparkle private keys, or internal host/network credentials.
  • CI workflows (workflows/release-attest.yml) must use ephemeral runners, ephemeral Keychains destroyed in always() cleanup steps, and GitHub OIDC (id-token: write) for provenance attestations.

5. Safe Harbor

We support good-faith security research. If you test strictly against your own browser session, locally installed copy of Destiny, or this repository, avoid accessing or modifying third-party user data, avoid denial-of-service / volumetric load against nandai.org, and report findings promptly via PVR or security@nandai.org before public disclosure, Nandai Lab will not pursue legal action for your good-faith research.


6. Out-of-Scope Issues

  • Theoretical vulnerabilities without a plausible security boundary impact.
  • Findings resulting solely from running third-party untrusted model weights loaded manually by the user outside Destiny's supported formats (please still report parser memory-safety bugs in GGUF/CAD/media loaders!).
  • Social engineering, phishing, or physical tampering with an unlocked Mac.
  • Volumetric DDoS attacks or automated scanner noise against nandai.org.

There aren't any published security advisories