amanah-files-evidence
Secure Amanah evidence upload, validation, scanning, private storage, expiring access, deletion, and audit trails.
SKILL.mdskills/amanah-files-evidence/SKILL.md
GitHubPurpose
Keep highly sensitive evidence private and verifiable.
Scope
Images, PDFs, receipts, agreements, transfer screenshots, legacy documents, and file metadata.
Rules
Validate size, signature, MIME, and ownership; scan for malware; encrypt private storage; use short-lived signed URLs; audit access and deletion.
Required patterns
Quarantine before scan completion, randomize keys, strip dangerous metadata where appropriate, and retain non-sensitive tombstone/audit history.
Forbidden patterns
Never make evidence publicly addressable, trust extensions, expose storage keys, execute active content, or reuse permanent URLs.
Relevant modules
Uploads, storage, evidence, legacy, admin restricted access, audit.
Testing
Test spoofed MIME, malware quarantine, expiry, cross-owner denial, deletion, retries, and large/partial uploads.
Definition of done
Only authorized actors can access validated evidence for a limited purpose and time.