Define conventions for JavaScript for Automation under attackmacos/ttp/<tactic>/jxa/: imports, forbidden APIs, audit rules, and builder integration.
- Prefer
ObjC.importof Foundation / AppKit (and peers) over shell-outs; followdocs/Guides/JXA Style Guide.mdanddocs/Guides/JXA Debug Guide.md. - Run
python3 cicd/audit/audit_jxa.pyon changed files; use--fullwhen auditing the whole tree. Rules are enforced incicd/audit/audit_jxa.py(e.g. nodoShellScript, noincludeStandardAdditions=true, noNSTask/ obvious shell spawn patterns unless explicitly allowed by project policy). - Merge and validate via
cicd/build/procedure_jxa.pyperdocs/CICD/build_jxa_procedure.md. - See
docs/Functions/Shell/JXA Script Blueprint.mdfor structural patterns.
docs/Guides/JXA Style Guide.mddocs/Guides/JXA Debug Guide.mddocs/CICD/build_jxa_procedure.mddocs/Functions/Shell/JXA Script Blueprint.mdcicd/audit/audit_jxa.py
Last modified: 2026-05-15
Last modified by: Documentation maintainers
Version: 1.0.0