develop-aurascan
Develop and validate AuraScan scanner rules, maintenance and recovery workflows, and Agent Instruction Guard. Use for changes in the AuraScan repository, including explicitly authorized GitHub/AUR releases.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- develop-aurascan
- description
- Develop and validate AuraScan scanner rules, maintenance and recovery workflows, and Agent Instruction Guard. Use for changes in the AuraScan repository, including explicitly authorized GitHub/AUR releases.
02 资源文件 500
- 参考文档.github/ISSUE_TEMPLATE/bug_report.yml1.5 KB
- 参考文档.github/ISSUE_TEMPLATE/config.yml27 B
- 参考文档.github/ISSUE_TEMPLATE/feature_request.yml993 B
- 参考文档.github/PULL_REQUEST_TEMPLATE.md480 B
- 参考文档.github/workflows/ci.yml2.4 KB
- 其他.gitignore1.4 KB
- 参考文档AGENTS.md42.4 KB
- 其他aurascan.hook215 B
- 脚本aurascan/__init__.py19 B
- 脚本aurascan/__main__.py122 B
- 脚本aurascan/analyzers/__init__.py29 B
- 脚本aurascan/analyzers/ai_static.py14.6 KB
- 脚本aurascan/analyzers/aur_propagation.py35.3 KB
- 脚本aurascan/analyzers/base.py543 B
- 脚本aurascan/analyzers/clamav.py11.1 KB
- 脚本aurascan/analyzers/deep_static.py37.7 KB
- 脚本aurascan/analyzers/deterministic.py36.8 KB
- 脚本aurascan/analyzers/dynamic.py985 B
- 脚本aurascan/analyzers/editor_tasks.py16.7 KB
- 脚本aurascan/analyzers/history.py18.4 KB
- 脚本aurascan/analyzers/injection/__init__.py1.7 KB
- 脚本aurascan/analyzers/injection/catalog.py3.4 KB
- 脚本aurascan/analyzers/injection/detectors.py875 B
- 脚本aurascan/analyzers/injection/encoded.py26.2 KB
- 脚本aurascan/analyzers/injection/engine.py3.5 KB
- 脚本aurascan/analyzers/injection/exfiltration.py3.6 KB
- 脚本aurascan/analyzers/injection/findings.py2.6 KB
- 脚本aurascan/analyzers/injection/injection_text.py8.1 KB
- 脚本aurascan/analyzers/injection/model.py2.2 KB
- 脚本aurascan/analyzers/injection/override.py4.9 KB
- 脚本aurascan/analyzers/injection/persona.py3.2 KB
- 脚本aurascan/analyzers/injection/scanner.py8.2 KB
- 脚本aurascan/analyzers/npm_install_audit.py11.2 KB
- 脚本aurascan/analyzers/npm_lifecycle.py28.8 KB
- 脚本aurascan/analyzers/npm_metadata.py15.3 KB
- 脚本aurascan/analyzers/npm_supply_chain.py26.6 KB
- 脚本aurascan/analyzers/python_bytecode_execution.py10.9 KB
- 脚本aurascan/analyzers/python_bytecode.py5.6 KB
- 脚本aurascan/analyzers/remote_access.py20.3 KB
- 脚本aurascan/analyzers/remote_stage.py47.5 KB
- 脚本aurascan/analyzers/repository_provenance.py229.1 KB
- 脚本aurascan/analyzers/source_metadata.py15.5 KB
- 脚本aurascan/assets/__init__.py36 B
- 参考文档aurascan/assets/aur-campaign-2026-06-11-packages.txt27.3 KB
- 参考文档aurascan/assets/aur-campaign-2026-06-11.json683 B
- 其他aurascan/assets/aurascan-incident-assistant.service1.0 KB
- 其他aurascan/assets/aurascan-incident-assistant.timer281 B
- 其他aurascan/assets/aurascan-incident-maintenance.service1.3 KB
- 其他aurascan/assets/aurascan-incident-maintenance.timer269 B
- 其他aurascan/assets/aurascan-incident-monitor.service1.4 KB
- 其他aurascan/assets/aurascan-incident-safe-autopilot.service1.3 KB
- 其他aurascan/assets/aurascan-incidents.conf335 B
- 其他aurascan/assets/aurascan-instruction-assistant.service1.1 KB
- 其他aurascan/assets/aurascan-instruction-assistant.timer302 B
- 其他aurascan/assets/aurascan-instruction-monitor.service1.3 KB
- 其他aurascan/assets/aurascan-instruction-monitor.timer301 B
- 其他aurascan/assets/aurascan-intelligence-activate.service1.3 KB
- 其他aurascan/assets/aurascan-intelligence-auto-disable.service1.1 KB
- 其他aurascan/assets/aurascan-intelligence-auto-enable.service1.1 KB
- 其他aurascan/assets/aurascan-intelligence-fetch.service1.2 KB
- 其他aurascan/assets/aurascan-intelligence-import.service1.2 KB
- 其他aurascan/assets/aurascan-intelligence-sysusers.conf108 B
- 其他aurascan/assets/aurascan-intelligence-tmpfiles.conf222 B
- 其他aurascan/assets/aurascan-intelligence-update.timer271 B
- 其他aurascan/assets/aurascan-intelligence.preset43 B
- 参考文档aurascan/assets/aurascan-recovery-iso.json479 B
- 其他aurascan/assets/aurascan-recovery-mkosi.conf543 B
- 其他aurascan/assets/aurascan-recovery-refresh.hook639 B
- 其他aurascan/assets/aurascan-recovery-smoke-marker.service1.1 KB
- 其他aurascan/assets/aurascan-recovery-tmpfiles.conf196 B
- 其他aurascan/assets/aurascan-recovery.service953 B
- 资产文件aurascan/assets/aurascan-updater-attention.svg383 B
- 资产文件aurascan/assets/aurascan-updater-critical.svg387 B
- 资产文件aurascan/assets/aurascan-updater-maintenance.svg405 B
- 其他aurascan/assets/aurascan-updater.desktop242 B
- 资产文件aurascan/assets/aurascan-updater.svg409 B
- 参考文档aurascan/assets/npm-shai-hulud-2026-09-07.json2.2 KB
- 参考文档aurascan/assets/runtime-intelligence.json5.9 KB
- 脚本aurascan/cli.py24.6 KB
- 脚本aurascan/core/__init__.py24 B
- 脚本aurascan/core/agent_config.py10.1 KB
- 脚本aurascan/core/agent.py135.9 KB
- 脚本aurascan/core/ai_provider.py23.1 KB
- 脚本aurascan/core/archive.py36.4 KB
- 脚本aurascan/core/audit.py587 B
- 脚本aurascan/core/aur_update_review.py40.4 KB
- 脚本aurascan/core/bounded_process.py1.6 KB
- 脚本aurascan/core/build_sandbox.py29.5 KB
- 脚本aurascan/core/cache.py3.2 KB
- 脚本aurascan/core/compatibility.py6.8 KB
- 脚本aurascan/core/config_drift_presenter.py4.4 KB
- 脚本aurascan/core/config_drift.py47.7 KB
- 脚本aurascan/core/config.py5.0 KB
- 脚本aurascan/core/context_provider.py7.4 KB
- 脚本aurascan/core/engine.py33.8 KB
- 脚本aurascan/core/evidence_cli.py7.2 KB
- 脚本aurascan/core/finding_explainer.py9.0 KB
- 脚本aurascan/core/followup.py64.6 KB
- 脚本aurascan/core/hardware_health.py35.8 KB
- 脚本aurascan/core/incident_automation.py28.4 KB
- 脚本aurascan/core/incident_cli.py6.5 KB
- 脚本aurascan/core/incident_diagnostics.py23.8 KB
- 脚本aurascan/core/incident_followup.py18.5 KB
- 脚本aurascan/core/incident_models.py21.6 KB
- 脚本aurascan/core/incident_presenter.py9.5 KB
- 脚本aurascan/core/incident_repairs.py52.7 KB
- 脚本aurascan/core/incidents.py140.8 KB
- 脚本aurascan/core/install_hook.py40.8 KB
- 脚本aurascan/core/instruction_cli.py56.2 KB
- 脚本aurascan/core/instruction_guard.py368.9 KB
- 脚本aurascan/core/intelligence_cli.py10.5 KB
- 脚本aurascan/core/intelligence_crypto.py5.1 KB
- 脚本aurascan/core/intelligence_store.py19.7 KB
- 脚本aurascan/core/intelligence_transport.py11.1 KB
- 脚本aurascan/core/intelligence_tray.py17.8 KB
- 脚本aurascan/core/intelligence.py19.9 KB
- 脚本aurascan/core/kernel_module_autopilot.py22.8 KB
- 脚本aurascan/core/local_package_db.py14.4 KB
- 脚本aurascan/core/models.py17.2 KB
- 脚本aurascan/core/npm_audit_cli.py7.7 KB
- 脚本aurascan/core/package_archive.py17.8 KB
- 脚本aurascan/core/pacman_sync_db.py6.6 KB
- 脚本aurascan/core/pkgbuild_dependencies.py7.6 KB
- 脚本aurascan/core/pnpm_buildchain.py18.8 KB
- 脚本aurascan/core/presenter.py120.3 KB
- 脚本aurascan/core/process_deadlocks.py5.8 KB
- 脚本aurascan/core/recovery_boot.py61.5 KB
- 脚本aurascan/core/recovery_cli.py62.9 KB
- 脚本aurascan/core/recovery_network.py12.6 KB
- 脚本aurascan/core/recovery_presenter.py3.4 KB
- 脚本aurascan/core/recovery_repairs.py73.9 KB
- 脚本aurascan/core/recovery.py110.1 KB
- 脚本aurascan/core/redaction.py3.5 KB
- 脚本aurascan/core/repository_provenance.py52.0 KB
- 脚本aurascan/core/repository_repair.py8.0 KB
- 脚本aurascan/core/repository_state.py7.2 KB
- 脚本aurascan/core/research_evidence.py21.8 KB
- 脚本aurascan/core/review.py23.5 KB
- 脚本aurascan/core/risk.py4.8 KB
- 脚本aurascan/core/rule_metadata.py52.9 KB
- 脚本aurascan/core/runtime_links.py13.0 KB
- 脚本aurascan/core/scan_report_presenter.py7.0 KB
- 脚本aurascan/core/security_audit_presenter.py5.4 KB
- 脚本aurascan/core/security_audit.py75.0 KB
- 脚本aurascan/core/settings_cli.py18.1 KB
- 脚本aurascan/core/source_acquisition.py128.8 KB
- 脚本aurascan/core/state_file.py1.1 KB
- 脚本aurascan/core/text_safety.py16.1 KB
- 脚本aurascan/core/trust_diff.py43.9 KB
- 脚本aurascan/core/trusted_executable.py5.7 KB
- 脚本aurascan/core/trusted_tools.py8.3 KB
- 脚本aurascan/core/ui_actions.py7.6 KB
- 脚本aurascan/core/ui_cli.py21.9 KB
- 脚本aurascan/core/update_policy.py19.5 KB
- 脚本aurascan/core/updater_tray.py61.4 KB
- 脚本aurascan/core/upgrade_followup.py15.3 KB
- 脚本aurascan/core/upgrade_models.py6.9 KB
- 脚本aurascan/core/upgrade_preflight_presenter.py7.1 KB
- 脚本aurascan/core/upgrade_preflight.py131.5 KB
- 脚本aurascan/makepkg_wrapper.py76.3 KB
- 脚本aurascan/mcp/__init__.py572 B
- 脚本aurascan/mcp/__main__.py3.2 KB
- 脚本aurascan/mcp/bundle.py9.1 KB
- 脚本aurascan/mcp/errors.py1.4 KB
- 脚本aurascan/mcp/guards.py6.6 KB
- 脚本aurascan/mcp/protocol.py12.4 KB
- 脚本aurascan/mcp/redaction.py8.8 KB
- 脚本aurascan/mcp/registry.py16.7 KB
- 脚本aurascan/mcp/results.py7.1 KB
- 脚本aurascan/mcp/server.py3.6 KB
- 脚本aurascan/mcp/tools/__init__.py311 B
- 脚本aurascan/mcp/tools/audit_agent_config.py1.6 KB
- 脚本aurascan/mcp/tools/scan_content.py3.2 KB
- 脚本aurascan/mcp/tools/scan_path.py2.5 KB
- 脚本aurascan/mcp/tools/security_audit_online.py7.4 KB
- 脚本aurascan/mcp/tools/security_audit.py2.6 KB
- 脚本aurascan/mcp/tools/verify_evidence.py8.9 KB
- 脚本aurascan/setup_wizard.py130.4 KB
- 其他contrib/dev/aurascan-dev.hook.example515 B
- 脚本desktop/electron/argv.cjs22.2 KB
- 脚本desktop/electron/main.cjs19.1 KB
- 脚本desktop/electron/preload.cjs1.5 KB
- 参考文档desktop/index.html556 B
- 参考文档desktop/package-lock.json55.8 KB
- 参考文档desktop/package.json884 B
- 参考文档desktop/README.md2.3 KB
- 其他desktop/src/App.tsx21.1 KB
- 其他desktop/src/components/StatusBadge.tsx834 B
- 脚本desktop/src/contract.test.ts8.2 KB
- 脚本desktop/src/contract.ts38.2 KB
- 脚本desktop/src/desktop.test.ts2.8 KB
- 脚本desktop/src/desktop.ts3.0 KB
- 参考文档desktop/src/fixtures/snapshot.sample.json8.6 KB
- 脚本desktop/src/incidents.test.ts2.5 KB
- 其他desktop/src/main.tsx336 B
- 脚本desktop/src/npm-audit.test.ts4.7 KB
- 脚本desktop/src/review.test.ts4.5 KB
- 脚本desktop/src/settings.test.ts6.7 KB
- 脚本desktop/src/shell-boundary.test.ts2.9 KB
- 脚本desktop/src/shell.test.ts18.5 KB
- 其他desktop/src/styles.css11.7 KB
- 其他desktop/src/views/About.tsx1.9 KB
- 其他desktop/src/views/Actions.tsx8.0 KB
- 其他desktop/src/views/Checks.tsx3.5 KB
- 其他desktop/src/views/Incidents.tsx6.7 KB
- 其他desktop/src/views/Instructions.tsx8.7 KB
- 其他desktop/src/views/Overview.tsx5.3 KB
- 其他desktop/src/views/Report.tsx6.1 KB
- 其他desktop/src/views/Settings.tsx12.3 KB
- 参考文档desktop/tsconfig.json510 B
- 脚本desktop/vite.config.ts399 B
- 脚本desktop/vitest.config.ts154 B
- 参考文档DEVELOPING.md128.8 KB
- 参考文档docs/AI_PROVIDER_CONFIGURATION.md12.1 KB
- 参考文档docs/ANNOUNCEMENT.md27.2 KB
- 参考文档docs/ARCHITECTURE.md62.6 KB
- 参考文档docs/AUR_SANDBOX_DESIGN.md7.7 KB
- 参考文档docs/DESKTOP_CONTROL_CENTER.md9.3 KB
- 参考文档docs/DESKTOP_UI_DESIGN.md18.4 KB
- 参考文档docs/PRIVACY.md25.5 KB
- 参考文档docs/REFERENCE.md136.6 KB
- 参考文档docs/RELEASE_CHECKLIST.md44.1 KB
- 参考文档docs/releases/unreleased.md90 B
- 参考文档docs/releases/v0.10.0.md4.6 KB
- 参考文档docs/releases/v0.10.1.md2.9 KB
- 参考文档docs/releases/v0.10.10.md8.4 KB
- 参考文档docs/releases/v0.10.11.md23.8 KB
- 参考文档docs/releases/v0.10.12.md2.5 KB
- 参考文档docs/releases/v0.10.13.md2.3 KB
- 参考文档docs/releases/v0.10.14.md2.2 KB
- 参考文档docs/releases/v0.10.15.md1.9 KB
- 参考文档docs/releases/v0.10.16.md2.6 KB
- 参考文档docs/releases/v0.10.17.md2.3 KB
- 参考文档docs/releases/v0.10.18.md2.2 KB
- 参考文档docs/releases/v0.10.19.md1.8 KB
- 参考文档docs/releases/v0.10.2.md3.9 KB
- 参考文档docs/releases/v0.10.3.md7.6 KB
- 参考文档docs/releases/v0.10.4.md7.2 KB
- 参考文档docs/releases/v0.10.5.md5.9 KB
- 参考文档docs/releases/v0.10.6.md7.4 KB
- 参考文档docs/releases/v0.10.7.md10.2 KB
- 参考文档docs/releases/v0.10.8.md5.0 KB
- 参考文档docs/releases/v0.10.9.md5.6 KB
- 参考文档docs/releases/v0.11.1.md3.4 KB
- 参考文档docs/releases/v0.12.0.md3.7 KB
- 参考文档docs/releases/v0.12.1.md2.9 KB
- 参考文档docs/releases/v0.12.2.md2.6 KB
- 参考文档docs/releases/v0.13.0.md4.2 KB
- 参考文档docs/releases/v0.14.0.md4.9 KB
- 参考文档docs/releases/v0.15.0.md6.0 KB
- 参考文档docs/releases/v0.15.1.md4.1 KB
- 参考文档docs/releases/v0.16.0.md5.1 KB
- 参考文档docs/releases/v0.16.1.md2.2 KB
- 参考文档docs/releases/v0.17.0.md3.4 KB
- 参考文档docs/releases/v0.18.0.md4.1 KB
- 参考文档docs/releases/v0.2.0.md1.4 KB
- 参考文档docs/releases/v0.3.0.md1.7 KB
- 参考文档docs/releases/v0.4.0.md3.7 KB
- 参考文档docs/releases/v0.5.0.md3.1 KB
- 参考文档docs/releases/v0.6.0.md4.2 KB
- 参考文档docs/releases/v0.7.0.md4.6 KB
- 参考文档docs/releases/v0.7.1.md856 B
- 参考文档docs/releases/v0.7.2.md555 B
- 参考文档docs/releases/v0.8.0.md2.6 KB
- 参考文档docs/releases/v0.9.0.md3.6 KB
- 参考文档docs/releases/v0.9.1.md2.3 KB
- 参考文档docs/releases/v0.9.2.md3.3 KB
- 参考文档docs/SECURITY_BOUNDARIES.md20.4 KB
- 参考文档docs/SECURITY_DATA_INTAKE.md14.7 KB
- 参考文档docs/SECURITY_MODEL_RND.md30.1 KB
- 参考文档findings/daybreak/ORCHESTRATOR-BRIEF.md6.5 KB
- 参考文档findings/daybreak/PROGRAM-CHARTER.md22.5 KB
- 参考文档findings/r10-sandbox-cleanup-evidence.md3.0 KB
- 参考文档findings/r5-r7-implementation.md42.6 KB
- 参考文档findings/release/v0.17.0-evidence.md3.5 KB
- 参考文档findings/release/v0.18.0-evidence.md5.2 KB
- 许可证LICENSE1.0 KB
- 其他packaging/arch/.SRCINFO2.8 KB
- 其他packaging/arch/aurascan.hook215 B
- 其他packaging/arch/aurascan.install1.1 KB
- 脚本packaging/arch/pin-release-checksum.sh3.2 KB
- 其他packaging/arch/PKGBUILD7.7 KB
- 参考文档packaging/arch/README.md9.6 KB
- 其他packaging/desktop/aurascan-desktop.desktop347 B
- 脚本packaging/desktop/aurascan-desktop.sh134 B
- 其他packaging/desktop/PKGBUILD1.9 KB
- 参考文档packaging/desktop/README.md2.1 KB
- 其他packaging/recovery/archiso/airootfs/etc/aurascan/recovery-environment2 B
- 其他packaging/recovery/archiso/airootfs/etc/issue127 B
- 其他packaging/recovery/archiso/airootfs/etc/pacman.conf586 B
- 其他packaging/recovery/archiso/airootfs/usr/lib/systemd/system-preset/90-aurascan-recovery.preset109 B
- 其他packaging/recovery/archiso/airootfs/usr/lib/systemd/system/aurascan-recovery-smoke-marker.service1.1 KB
- 其他packaging/recovery/archiso/packages.x86_64244 B
- 其他packaging/recovery/archiso/pacman.conf586 B
- 脚本packaging/recovery/archiso/profiledef.sh730 B
- 脚本packaging/recovery/audit-artifacts.py29.5 KB
- 脚本packaging/recovery/build-iso.sh34.7 KB
- 脚本packaging/recovery/prepare-secure-boot.py66.0 KB
- 脚本packaging/recovery/qemu-smoke.sh10.9 KB
- 脚本packaging/recovery/qemu-uki-smoke.sh20.6 KB
- 参考文档packaging/recovery/README.md19.1 KB
- 脚本packaging/recovery/recovery-build-helper.py32.2 KB
- 脚本packaging/recovery/recovery-smoke-bootstrap.py8.5 KB
- 脚本packaging/recovery/recovery-smoke-launcher.py51.8 KB
- 其他packaging/recovery/rootfs/etc/issue107 B
- 其他packaging/recovery/rootfs/usr/lib/systemd/system-preset/90-aurascan-recovery.preset63 B
- 参考文档packaging/recovery/SCENARIO_VALIDATION.md13.6 KB
- 脚本packaging/recovery/smoke_guard.py43.1 KB
- 脚本packaging/recovery/smoke-tool-guard.sh3.8 KB
- 其他pyproject.toml1.6 KB
- 参考文档README.md11.7 KB
- 参考文档security-data/README.md21.6 KB
- 参考文档security-research/architecture/attack-surface-inventory.md28.0 KB
- 参考文档security-research/architecture/capability-matrix.md12.0 KB
- 参考文档security-research/architecture/trust-boundaries.md22.2 KB
- 其他security-research/architecture/trust-boundaries.mmd7.5 KB
- 参考文档security-research/daybreak/application-dossier.md14.8 KB
- 参考文档security-research/daybreak/assessment-history.md4.2 KB
- 参考文档security-research/daybreak/blue-vs-red.md18.7 KB
- 参考文档security-research/daybreak/eligibility.md13.5 KB
- 参考文档security-research/daybreak/readiness-assessment.md7.9 KB
- 参考文档security-research/daybreak/red-use-cases.md10.2 KB
- 参考文档security-research/evidence/evidence-index.md11.4 KB
- 参考文档security-research/evidence/review-gate-summary.md7.0 KB
- 参考文档security-research/evidence/security-0.15.1-gate.md2.1 KB
- 参考文档security-research/evidence/test-results/2026-11-09-baseline.md9.0 KB
- 参考文档security-research/evidence/venice-provenance.md5.5 KB
- 参考文档security-research/governance/authorization-scope.md4.3 KB
- 参考文档security-research/governance/responsible-disclosure.md3.5 KB
- 参考文档security-research/governance/vulnerability-handling.md3.7 KB
- 参考文档security-research/README.md16.1 KB
- 其他security-research/testing/corpus/fixtures/install-hook-benign/corpus-install-hook-benign.install186 B
- 其他security-research/testing/corpus/fixtures/install-hook-benign/PKGBUILD545 B
- 其他security-research/testing/corpus/fixtures/install-hook-privileged/corpus-install-hook-privileged.install188 B
- 其他security-research/testing/corpus/fixtures/install-hook-privileged/PKGBUILD572 B
- 脚本security-research/testing/corpus/fixtures/npm-lifecycle-benign/build.js273 B
- 参考文档security-research/testing/corpus/fixtures/npm-lifecycle-benign/package.json140 B
- 参考文档security-research/testing/corpus/fixtures/npm-lifecycle-env-exfil/package.json143 B
- 脚本security-research/testing/corpus/fixtures/npm-lifecycle-env-exfil/setup.js412 B
- 参考文档security-research/testing/corpus/fixtures/npm-lifecycle-incomplete/package.json157 B
- 其他security-research/testing/corpus/fixtures/pkgbuild-base64-benign/PKGBUILD578 B
- 其他security-research/testing/corpus/fixtures/pkgbuild-base64-exec/PKGBUILD563 B
- 其他security-research/testing/corpus/fixtures/pkgbuild-source-git-ambiguous/PKGBUILD452 B
- 其他security-research/testing/corpus/fixtures/pkgbuild-source-pinned-archive/PKGBUILD509 B
- 参考文档security-research/testing/corpus/manifest.json10.6 KB
- 参考文档security-research/testing/detector-benchmark.md12.0 KB
- 参考文档security-research/testing/isolation-and-rollback.md7.2 KB
- 参考文档security-research/testing/privilege-boundaries.md15.5 KB
- 参考文档security-research/testing/README.md8.8 KB
- 脚本tests/conftest.py1.6 KB
- 参考文档tests/fixtures/ai_base_url_cases.json1.9 KB
- 其他tests/fixtures/curated_packages/account_ssh_backdoor_install_hook/curated-account-ssh-backdoor.install551 B
- 参考文档tests/fixtures/curated_packages/account_ssh_backdoor_install_hook/expected.json644 B
- 其他tests/fixtures/curated_packages/account_ssh_backdoor_install_hook/PKGBUILD510 B
- 其他tests/fixtures/curated_packages/aur_repo_propagation_install_hook/.curated-aur-repo-propagation.install485 B
- 参考文档tests/fixtures/curated_packages/aur_repo_propagation_install_hook/expected.json492 B
- 其他tests/fixtures/curated_packages/aur_repo_propagation_install_hook/PKGBUILD521 B
- 参考文档tests/fixtures/curated_packages/base64_exec/expected.json441 B
- 其他tests/fixtures/curated_packages/base64_exec/PKGBUILD462 B
- 参考文档tests/fixtures/curated_packages/benign_git_commit/expected.json364 B
- 其他tests/fixtures/curated_packages/benign_git_commit/PKGBUILD404 B
- 其他tests/fixtures/curated_packages/benign_install_hook/curated-benign-install-hook.install58 B
- 参考文档tests/fixtures/curated_packages/benign_install_hook/expected.json345 B
- 其他tests/fixtures/curated_packages/benign_install_hook/PKGBUILD496 B
- 其他tests/fixtures/curated_packages/benign_service_account/curated-benign-service-account.install404 B
- 参考文档tests/fixtures/curated_packages/benign_service_account/expected.json646 B
- 其他tests/fixtures/curated_packages/benign_service_account/PKGBUILD530 B
- 参考文档tests/fixtures/curated_packages/benign_service_packaging/expected.json567 B
- 其他tests/fixtures/curated_packages/benign_service_packaging/PKGBUILD557 B
- 参考文档tests/fixtures/curated_packages/credential_env_manual_review/expected.json583 B
- 其他tests/fixtures/curated_packages/credential_env_manual_review/PKGBUILD489 B
- 参考文档tests/fixtures/curated_packages/credential_ssh_access/expected.json454 B
- 其他tests/fixtures/curated_packages/credential_ssh_access/PKGBUILD482 B
- 参考文档tests/fixtures/curated_packages/cron_file_install/expected.json481 B
- 其他tests/fixtures/curated_packages/cron_file_install/PKGBUILD490 B
- 其他tests/fixtures/curated_packages/cron_reboot_entry/curated-cron-reboot-entry.install101 B
- 参考文档tests/fixtures/curated_packages/cron_reboot_entry/expected.json652 B
- 其他tests/fixtures/curated_packages/cron_reboot_entry/PKGBUILD480 B
- 参考文档tests/fixtures/curated_packages/curl_pipe_shell/expected.json558 B
- 其他tests/fixtures/curated_packages/curl_pipe_shell/PKGBUILD501 B
- 参考文档tests/fixtures/curated_packages/deep_static/archive_absolute_path/expected.json618 B
- 其他tests/fixtures/curated_packages/deep_static/archive_absolute_path/PKGBUILD108 B
- 参考文档tests/fixtures/curated_packages/deep_static/archive_hardlink_escape/expected.json625 B
- 其他tests/fixtures/curated_packages/deep_static/archive_hardlink_escape/PKGBUILD110 B
- 参考文档tests/fixtures/curated_packages/deep_static/archive_nested_depth/expected.json649 B
- 其他tests/fixtures/curated_packages/deep_static/archive_nested_depth/PKGBUILD107 B
- 参考文档tests/fixtures/curated_packages/deep_static/archive_oversized/expected.json643 B
- 其他tests/fixtures/curated_packages/deep_static/archive_oversized/PKGBUILD104 B
- 参考文档tests/fixtures/curated_packages/deep_static/archive_path_traversal/expected.json621 B
- 其他tests/fixtures/curated_packages/deep_static/archive_path_traversal/PKGBUILD109 B
- 参考文档tests/fixtures/curated_packages/deep_static/archive_symlink_escape/expected.json621 B
- 其他tests/fixtures/curated_packages/deep_static/archive_symlink_escape/PKGBUILD109 B
- 参考文档tests/fixtures/curated_packages/deep_static/archive_too_many_files/expected.json657 B
- 其他tests/fixtures/curated_packages/deep_static/archive_too_many_files/PKGBUILD109 B
- 参考文档tests/fixtures/curated_packages/deep_static/cron_docs_no_warning/expected.json613 B
- 其他tests/fixtures/curated_packages/deep_static/cron_docs_no_warning/PKGBUILD107 B
- 参考文档tests/fixtures/curated_packages/deep_static/deep_static_systemd_auto_enable/expected.json776 B
- 其他tests/fixtures/curated_packages/deep_static/deep_static_systemd_auto_enable/PKGBUILD106 B
- 参考文档tests/fixtures/curated_packages/deep_static/deep_static_systemd_unit_file/expected.json871 B
- 其他tests/fixtures/curated_packages/deep_static/deep_static_systemd_unit_file/PKGBUILD104 B
- 参考文档tests/fixtures/curated_packages/deep_static/deep_static_systemd_user_persistence/expected.json789 B
- 其他tests/fixtures/curated_packages/deep_static/deep_static_systemd_user_persistence/PKGBUILD111 B
- 参考文档tests/fixtures/curated_packages/deep_static/pgp_invalid_signature/expected.json768 B
- 其他tests/fixtures/curated_packages/deep_static/pgp_invalid_signature/PKGBUILD168 B
- 参考文档tests/fixtures/curated_packages/deep_static/pgp_key_unavailable/expected.json795 B
- 其他tests/fixtures/curated_packages/deep_static/pgp_key_unavailable/PKGBUILD166 B
- 参考文档tests/fixtures/curated_packages/deep_static/pgp_signer_mismatch/expected.json801 B
- 其他tests/fixtures/curated_packages/deep_static/pgp_signer_mismatch/PKGBUILD169 B
- 参考文档tests/fixtures/curated_packages/deep_static/pgp_valid_signature/expected.json809 B
- 其他tests/fixtures/curated_packages/deep_static/pgp_valid_signature/PKGBUILD166 B
- 参考文档tests/fixtures/curated_packages/deep_static/pgp_weak_validpgpkeys/expected.json777 B
- 其他tests/fixtures/curated_packages/deep_static/pgp_weak_validpgpkeys/PKGBUILD155 B
- 参考文档tests/fixtures/curated_packages/deep_static/README.md3.0 KB
- 参考文档tests/fixtures/curated_packages/deep_static/source_aur_release_tooling/expected.json640 B
- 其他tests/fixtures/curated_packages/deep_static/source_aur_release_tooling/PKGBUILD113 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_minified_file/expected.json654 B
- 其他tests/fixtures/curated_packages/deep_static/source_minified_file/PKGBUILD107 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_npm_manifest_path_escape/expected.json728 B
- 其他tests/fixtures/curated_packages/deep_static/source_npm_manifest_path_escape/PKGBUILD113 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_package_json/expected.json657 B
- 其他tests/fixtures/curated_packages/deep_static/source_package_json/PKGBUILD106 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_pnpm_lockfile_path_escape/expected.json727 B
- 其他tests/fixtures/curated_packages/deep_static/source_pnpm_lockfile_path_escape/PKGBUILD114 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_python_unchecked_bytecode/expected.json736 B
- 其他tests/fixtures/curated_packages/deep_static/source_python_unchecked_bytecode/PKGBUILD114 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_setup_py/expected.json645 B
- 其他tests/fixtures/curated_packages/deep_static/source_setup_py/PKGBUILD102 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_shai_hulud_lifecycle/expected.json746 B
- 其他tests/fixtures/curated_packages/deep_static/source_shai_hulud_lifecycle/PKGBUILD107 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_token_reference/expected.json663 B
- 其他tests/fixtures/curated_packages/deep_static/source_token_reference/PKGBUILD109 B
- 参考文档tests/fixtures/curated_packages/deep_static/source_vendored_deps/expected.json654 B
- 其他tests/fixtures/curated_packages/deep_static/source_vendored_deps/PKGBUILD107 B
- 参考文档tests/fixtures/curated_packages/deep_static/systemd_docs_no_warning/expected.json718 B
- 其他tests/fixtures/curated_packages/deep_static/systemd_docs_no_warning/PKGBUILD110 B
- 参考文档tests/fixtures/curated_packages/editor_task_autorun_carrier/.vscode/tasks.json273 B
- 参考文档tests/fixtures/curated_packages/editor_task_autorun_carrier/expected.json565 B
- 资产文件tests/fixtures/curated_packages/editor_task_autorun_carrier/font.woff259 B
- 其他tests/fixtures/curated_packages/editor_task_autorun_carrier/PKGBUILD288 B
- 参考文档tests/fixtures/curated_packages/editor_task_benign/.vscode/tasks.json642 B
- 脚本tests/fixtures/curated_packages/editor_task_benign/build.js76 B
- 参考文档tests/fixtures/curated_packages/editor_task_benign/expected.json494 B
- 资产文件tests/fixtures/curated_packages/editor_task_benign/font.woff259 B
- 其他tests/fixtures/curated_packages/editor_task_benign/PKGBUILD274 B
- 参考文档tests/fixtures/curated_packages/eval_chain_pkgbuild/expected.json527 B
- 其他tests/fixtures/curated_packages/eval_chain_pkgbuild/PKGBUILD487 B
- 参考文档tests/fixtures/curated_packages/eval_network_decode_combo/expected.json605 B
- 其他tests/fixtures/curated_packages/eval_network_decode_combo/PKGBUILD498 B
- 其他tests/fixtures/curated_packages/history_build_changed/current/PKGBUILD306 B
- 参考文档tests/fixtures/curated_packages/history_build_changed/expected.json406 B
- 其他tests/fixtures/curated_packages/history_build_changed/previous/PKGBUILD302 B
- 其他tests/fixtures/curated_packages/history_checksum_skip/current/PKGBUILD244 B
- 参考文档tests/fixtures/curated_packages/history_checksum_skip/expected.json411 B
- 其他tests/fixtures/curated_packages/history_checksum_skip/previous/PKGBUILD304 B
- 其他tests/fixtures/curated_packages/history_combined_supply_chain/current/PKGBUILD349 B
- 参考文档tests/fixtures/curated_packages/history_combined_supply_chain/expected.json746 B
- 其他tests/fixtures/curated_packages/history_combined_supply_chain/previous/PKGBUILD365 B
- 其他tests/fixtures/curated_packages/history_dependency_added/current/PKGBUILD333 B
- 参考文档tests/fixtures/curated_packages/history_dependency_added/expected.json414 B
- 其他tests/fixtures/curated_packages/history_dependency_added/previous/PKGBUILD326 B
- 其他tests/fixtures/curated_packages/history_install_hook_changed/current/.INSTALL61 B
- 其他tests/fixtures/curated_packages/history_install_hook_changed/current/PKGBUILD302 B
- 参考文档tests/fixtures/curated_packages/history_install_hook_changed/expected.json417 B
- 其他tests/fixtures/curated_packages/history_install_hook_changed/previous/.INSTALL57 B
- 其他tests/fixtures/curated_packages/history_install_hook_changed/previous/PKGBUILD302 B
- 其他tests/fixtures/curated_packages/history_normal_version_bump/current/PKGBUILD300 B
- 参考文档tests/fixtures/curated_packages/history_normal_version_bump/expected.json323 B
- 其他tests/fixtures/curated_packages/history_normal_version_bump/previous/PKGBUILD300 B
- 其他tests/fixtures/curated_packages/history_pgp_removed/current/PKGBUILD294 B
- 参考文档tests/fixtures/curated_packages/history_pgp_removed/expected.json398 B
- 其他tests/fixtures/curated_packages/history_pgp_removed/previous/PKGBUILD352 B
- 其他tests/fixtures/curated_packages/history_source_host_changed/current/PKGBUILD308 B
- 参考文档tests/fixtures/curated_packages/history_source_host_changed/expected.json469 B
- 其他tests/fixtures/curated_packages/history_source_host_changed/previous/PKGBUILD296 B
- 其他tests/fixtures/curated_packages/install_hook_curl/curated-install-hook-curl.install118 B
- 参考文档tests/fixtures/curated_packages/install_hook_curl/expected.json449 B
- 其他tests/fixtures/curated_packages/install_hook_curl/PKGBUILD497 B
- 参考文档tests/fixtures/curated_packages/npm_shai_hulud_dependency/expected.json526 B
- 其他tests/fixtures/curated_packages/npm_shai_hulud_dependency/PKGBUILD575 B
- 其他tests/fixtures/curated_packages/privileged_install_hook_sudo/curated-privileged-install-hook-sudo.install168 B
- 参考文档tests/fixtures/curated_packages/privileged_install_hook_sudo/expected.json576 B
- 其他tests/fixtures/curated_packages/privileged_install_hook_sudo/PKGBUILD536 B
- 其他tests/fixtures/curated_packages/python_unchecked_bytecode/carrier.pyc.fixture48 B
- 参考文档tests/fixtures/curated_packages/python_unchecked_bytecode/expected.json709 B
- 其他tests/fixtures/curated_packages/python_unchecked_bytecode/PKGBUILD312 B
- 参考文档tests/fixtures/curated_packages/python_unchecked_bytecode/README.txt758 B
- 参考文档tests/fixtures/curated_packages/README.md1.5 KB
- 参考文档tests/fixtures/curated_packages/signature_metadata/expected.json430 B
- 其他tests/fixtures/curated_packages/signature_metadata/PKGBUILD523 B
- 参考文档tests/fixtures/curated_packages/simple_benign/expected.json515 B
- 其他tests/fixtures/curated_packages/simple_benign/PKGBUILD470 B
- 参考文档tests/fixtures/curated_packages/skip_archive_no_signature/expected.json542 B
- 其他tests/fixtures/curated_packages/skip_archive_no_signature/PKGBUILD360 B
- 参考文档tests/fixtures/curated_packages/split_ambiguous/expected.json312 B
- 其他tests/fixtures/curated_packages/split_ambiguous/PKGBUILD523 B
- 参考文档tests/fixtures/curated_packages/suid_chmod/expected.json436 B
- 其他tests/fixtures/curated_packages/suid_chmod/PKGBUILD476 B
- 其他tests/fixtures/curated_packages/systemd_auto_enable_install_hook/curated-systemd-auto-enable.install74 B
- 参考文档tests/fixtures/curated_packages/systemd_auto_enable_install_hook/expected.json643 B
- 其他tests/fixtures/curated_packages/systemd_auto_enable_install_hook/PKGBUILD509 B
03 SKILL.md 正文
Develop AuraScan
Use this workflow for changes in the AuraScan repository. First read the
canonical product orientation and repository-wide contract in AGENTS.md;
AuraScan's package, maintenance, recovery, instruction-file, and optional AI
features are one defense-in-depth system, but their evidence and authority
boundaries must remain separate.
For Codex with GPT-6 Astra, follow coding-agent operation for autonomy, instruction precedence, and bounded parallel work. Preserve user intent and existing authorization; this skill does not require approval for routine local fixes. Apply only sections relevant to the task. External release publication and the product's fresh exact-command consent retain their explicit requirements regardless of the agent model.
Establish context
- Read
AGENTS.md,README.md, the relevant part ofDEVELOPING.md, and nearby tests. - Inspect
git statusand preserve unrelated changes. - Classify the requested evidence surface before editing:
- default PKGBUILD or declared install-hook text;
- bounded filesystem provenance beside a PKGBUILD;
- opt-in acquired source under deep-static analysis;
- installed package, bounded pacman history, or helper-cache provenance;
- injected-root host artifacts; or
- bounded AI-agent instruction and skill files under an explicit root; or
- upgrade transaction context; or
- explicit cloud/local AI provider configuration and transport; or
- recovery runtime, image construction, boot validation, or release disposition.
- State what the evidence can and cannot prove. Keep static intent, attempted behavior, successful execution, and confirmed compromise distinct.
Route the change
- Add default static rules in
aurascan/analyzers/deterministic.py. - Add acquired-source checks in
aurascan/analyzers/deep_static.py. - Put shared, secret-free correlations in a small analyzer helper.
- Keep editor-task JSON command semantics separate from shell text, and bind inspection to captured bytes. See editor task and Git identity evidence for the bounded Linux subset, execution prerequisites and deferred coverage.
- Preserve source selectors in trust-diff identity; explicit Git acquisition must resolve the intended namespace and verify the resulting commit.
- Keep local maintainer-comment history separate from authoritative AUR ownership. Changed annotations retain review and normal scanning; missing comments, pushes, restoration and adoption requests cannot establish adoption.
- Add exposure and host checks in
aurascan/core/security_audit.py. - For independently updated runtime indicators, follow the separate runtime contract and publisher workflow. Keep research quarantine separate, rights fail-closed, and corrections explicit. Snapshot intelligence once per operation; changed identities invalidate cache/history shortcuts and package review acceptance. Preserve unprivileged download, offline privileged verification, fixed trust, bounded no-follow transactions, and disabled-by-default timers. Production key provisioning, publication and installed-system updates remain separate authorized release work. Tray controls must stay asynchronous, use fixed unprivileged service clients and desktop authorization, and display validated local status. No menu/status refresh may download, enable a timer, or render raw child output. Preserve shared mutation/quit guards and verify observed state after requests.
- Add bounded agent-control discovery, content correlations, integrity state,
and disable receipts in
aurascan/core/instruction_guard.py; add CLI and service consent behavior inaurascan/core/instruction_cli.py. - Add provider presets, readiness, URL validation, and transport behavior in
aurascan/core/ai_provider.py; keep workflow consumers on the sharedreadycontract instead of checking API-key presence themselves. - Update
aurascan/core/rule_metadata.pyandaurascan/core/presenter.pyfor every user-visible MEDIUM+ rule. - Add focused tests beside the affected subsystem and a defanged curated fixture when normal fast/wrapper coverage should retain the behavior.
- For security-corpus or model-evaluation groundwork, follow security model research and the separate metadata contract; reuse existing injected analyzer/provider/test interfaces before introducing runtime abstractions.
- Use developer intake for explicitly selected public source/fixture capture. Acquisition, candidate admission and review are separate operations; reviewed candidates remain quarantined and ineligible. Preserve exact content/revision and package-family lineage, unknown rights, and the distinction between scanner assessments and established labels.
- Update
README.md,DEVELOPING.md, anddocs/releases/unreleased.mdwhen capabilities or contributor contracts change.
Retain research evidence
When work produces a reusable finding, bypass attempt, false positive, fix or model disagreement, consider an explicitly reviewed metadata record. Preserve source/rights/privacy, real versus synthetic origin, parent/family lineage, claim scope and expected versus observed outcomes; do not copy private reports or rejected model prose. Validate manifests with the offline data-contract tool before admission. Its structural result does not establish rights or safety. Use explicit schema versions and reviewed migrations. Record generation and provider provenance; verify separate rights for analysis, redistribution and commercial training, including explicit provider permission for training on proprietary outputs. Missing evidence keeps the affected use ineligible.
Keep training separate from evaluation, reserve private holdout lineages outside the worktree, and record exposure before a fix or regression leaks an evaluation case. Contamination invalidates the comparison. Model selection needs frozen, task-specific evidence and independent cases; reduced refusal is a separate measurement from reasoning, calibration and policy compliance. Research roles never inherit credentials, release authority or privileged execution. Keep reserved holdouts inaccessible to training/adversarial-example generators; establish acceptance thresholds from development baselines before held-out scoring.
Design threat detection
- Prefer a behavior chain over a common binary, service, IP range, or package capability. Require at least one remote-access anchor before labeling a correlation a remote-access backdoor.
- Keep exact incident indicators separate from generic behavioral rules so each finding explains its evidence and expected lifetime.
- Emit only bounded, secret-free evidence labels. Never expose auth keys, SSH public keys, passwords, tokens, or entire suspicious scripts.
- Add tests for the malicious pattern, legitimate adjacent usage, comments or quoted messages, phase-specific behavior, and uncertainty wording.
- For post-compromise checks, inject the root path, refuse symlinked files, bound reads and enumeration, and avoid executing or importing artifacts.
- Do not flag a routine service such as
tailscaledalone. Correlate it with privileged enrollment, root SSH configuration, persistence, credential changes, or anti-forensics. - Detect AUR repository propagation only in deterministic PKGBUILD and declared install-hook control text. Correlate an AUR Git target, repository mutation/staging, and outbound push. Treat enumeration, loops, hidden hook names, or SSH credential access as supporting evidence, and do not apply a blanket rule to ordinary release tooling found only in deep-static source.
- Scan the bounded filesystem tree beside each PKGBUILD without following
links or invoking Git, native identification tools, the network, or package
code. In the normal walk prune VCS internals, named cache/dependency
directories, and generated root
src/pkgtrees, but capture statically resolved required control paths through otherwise pruned trees and fail closed on ambiguity or unsafe capture. Recognize supported executable/archive magic from stable bytes and exclude exact supported literalsource=()checkout files from artifact classification. Treat uncorrelated, non-generated presence as MEDIUM/non-hard-blocking but acceptance-eligible for manual review, exact install into$pkgdiras HIGH/manual review, exact execution/code loading or SUID/SGID installation as CRITICAL/blocking, and incomplete inspection as fail-closed missing coverage. Never claim filesystem presence proves an artifact was Git-tracked, AUR-distributed, malicious, installed, or executed successfully. - Detect remote second-stage execution only when static data flow binds an active fetch/clone to a local artifact and later execution of that artifact or a bounded decoded/copied derivative. Keep unexecuted downloads, source arrays, documentation, ordinary picture/media assets, and path mismatches negative. Treat a supported local decode-to-file chain followed by exact execution, or direct interpreter/executable invocation of a media-, document-, or font-named path, as a separate opaque-carrier correlation; never infer hidden content from the filename alone.
- Scan built package
.INSTALLcontrol text through the bounded no-follow archive reader. An unreadable, changing, oversized, binary, or invalid hook is an incomplete-inspection blocker, not evidence of compromise. - Inspect pnpm-related metadata as bounded data, never by installing or invoking dependencies. Match supported decoded fields to concrete path-escape components; keep ordinary scoped names and inert metadata negative. Separate installed-version advisory exposure from suspicious package metadata and disclose unsupported versions or unverified backports. Consult primary advisories before defining affected/fixed ranges; a historical report is not proof of what Arch currently ships or what a user has installed.
- Classify precompiled Python artifacts from supported bounded magic/header
bytes without importing, executing, deserializing, or decompiling them.
PEP 552 source-hash headers do not authenticate bytecode bodies. Preserve
the provenance distinction between presence, exact installation, and code
loading. A
.pydfilename selects a native-extension candidate; interpret PEP 552 only when the captured bytes independently establish that format.
For npm campaign updates, verify original researcher reports and GHSA/OSV records before editing bundled intelligence. Keep exact observed release tuples, broader package-advisory scope, and payload evidence hashes distinct. Parse supported metadata and active install/network arguments without installing dependencies. Explicit deep-static hashing must cover bounded stable regular source bytes, including renamed non-code files, and fail closed on missing coverage. Bind lifecycle entry scripts to their captured package root and correlate credential access, configuration writes, and network/publication behavior; ordinary names, comments, and Bun/Node launchers alone are insufficient. Registry presence or publish-time scanning cannot override deterministic risk. Hash-match tests substitute synthetic byte signatures. All fixture text stays inert.
Design instruction-file protection
- Treat Markdown, JSON, imports, hooks, and skill resources as untrusted data:
never source, import, render, execute, or traverse symlink directories.
Parse CodeWhale/legacy DeepSeek project TOML structurally with the bounded
standard-library subset reader. Keep top-level authority changes distinct
from quoted examples and table-scoped settings. Exclude the user-global auth
configs from project detection and reads. Unsupported TOML is coverage.
Preserve each imported resource's project boundary and literal path across
continuation and recursive review; never read escaped or credential targets.
Cursor
.mdcand legacy rules are instruction text; MCP and approval JSON require structural analysis of supported command/grant fields. Reuse bounded reads and enrollment, keep disable/restore manual-only, and report unsupported configuration as coverage. Never resolve credentials, expand variables or launch a configured server to inspect it. - Restrict final regular-file targets to the selected root, use no-follow and
fstatvalidation, detect replacement during reads, and bound enumeration, sizes, and elapsed time. - Correlate active behavior families and suppress quoted examples, fenced documentation, comments, and negated instructions where evidence permits. Preserve bounded, one-based physical line ranges for contributing active text. Attribute only the behavior role actually present at each range, then explain why the roles form a dangerous correlation; never copy the complete family set onto every line or expose source snippets.
- Keep first-seen/change integrity state separate from content severity.
Describe a clean first-seen file as neutral baseline enrollment with AI
not-needed, never give a zero-finding file a LOW threat badge, and present suspicious instructions, scan coverage, integrity changes, and baseline setup as distinct states. Put line roles, the fixed deterministic reason, and any mapped AI rationale together under the actual finding; disclose bounded AI explanation counts, keep malformed configuration in scan coverage, and give each state a concrete next step. Wrap output without splitting file IDs. Clearly label an incomplete continuation page. Machine-and-UID-bound approval cannot be restored onto a rebuilt host. - Keep the periodic deterministic service offline and credential-free. AI is separately enabled, raise-only, tool-free, strict-JSON, and limited to bounded opaque evidence IDs, fixed reasons, behavior labels, and deterministic locations. Map advisory rationales to supplied evidence; AI cannot invent lines, establish trust, or claim execution or compromise.
- Allow confirmed disable only for unchanged, user-owned, standalone regular instruction Markdown. Revalidate every condition at action time and restore only an unchanged receipt target when the original path is absent.
- Permit batch baseline enrollment only from a complete, coverage-clear report containing safe clean first-seen candidates. After confirmation, revalidate every selected file and abort the entire action on any stale, changed, suspicious, restored, or unsafe baseline input before one serialized private-state transaction. Clean content-only Markdown is excluded from trust without blocking the safe baseline subset; a content or coverage finding in it still blocks. AI must never perform or authorize enrollment.
- Use generic count/severity notifications. Interactive review may identify a private path, but usernames, source snippets, secrets, line details, and AI output must not enter notifications or other public state.
- Keep guided triage foreground-only. Offer fixed approve, confirmed-disable, rescan, leave, or quit decisions only where the underlying core action is eligible; never execute instruction content, invoke an editor, or turn a model response into an action.
- Retention may prune bounded report and alert history, but never manifest review state; update or remove AI-job references before deleting a report.
- Bind every persisted continuation cursor to the matching committed cycle and page sequence. A cursor without that commit must restart from the root with review required; it must never skip the uncommitted page.
- Do not treat Markdown quoting or fencing as a trust boundary. Suppress a clearly labeled example only while no later active directive references it for execution.
- Keep tray monitor/AI toggles asynchronous and no-shell. Reuse the transactional CLI, accept review-required status as valid, serialize mutations, bound combined output and runtime, retire Qt children, and do not let the tray's own Quit action interrupt rollback.
- Serialize all private-state mutations under the validated state lock. Bind triage approve/disable actions to the exact displayed report and hash, and keep interrupted enrollment state fail-closed until a complete scan of the transaction's exact root revalidates every recorded target. Never let an unrelated root or partial continuation clear the transaction marker.
Preserve scanner safety
- Never run PKGBUILDs, install hooks, package payloads, downloaded malware, or fixture commands.
- Keep the default path offline and no-fetch; source acquisition stays explicit.
- Local AI stays explicit and loopback-only, bypasses proxies, refuses redirects, bounds responses/timeouts, and never falls back to cloud AI.
- Package AI is tool-free and raise-only. Send bounded numbered JSON data; accept only strict allowlisted fields referencing supplied lines; discard raw model prose, commands, URLs, and extra fields. No model response may lower a deterministic result or establish trust.
- Mock provider calls and local endpoints; do not require a live model server in tests or CI.
- Use defanged local fixtures,
example.invalid, fake keys, and temporary roots. - Preserve hard blockers, conservative fallback behavior, and Python 3.8+ compatibility.
- Keep
--all-markdowncontent-only, monitor opt-in, and packaged user units disabled until setup. Do not add command/link preflight, privileged fanotify interception, process monitoring, automatic quarantine, or compromise claims. - Bump the engine rule version when changed rules could invalidate cached scan decisions.
- Bind the bounded repository-provenance manifest/status to cache identity, review, history, trust comparison, and makepkg wrapper revalidation. A PKGBUILD-only cache key must never hide a changed adjacent artifact, and an incomplete repository capture must never create or reuse an allow decision.
- Revalidate the full package snapshot immediately before makepkg handoff. Reject makepkg input/integrity bypass flags and strip direct shell or dynamic- loader code-loading environment variables; review acceptance does not permit either bypass.
- Keep local repository-provenance review actionable: verbose terminal output may show a sanitized observed/control path, the one-based deterministic control line, and a short artifact SHA-256 prefix. Never copy artifact bytes, matched command text, or secrets into the explanation, and never present a locator as proof of execution or compromise.
- In deep-static mode, parse only the captured PKGBUILD, refuse all network
acquisition under
--offline, snapshot local files with no-follow reads, isolate per-source paths, fail closed on uninspected declarations, and avoid cache reuse until acquired-source identities are part of the key. - Reject source/key URL credentials, localhost, and non-public IP literals on initial and redirected requests; omit URL userinfo, query, and fragment data from reports and state. State the residual DNS-rebinding limit explicitly.
- Bound archive entry enumeration and actual extracted bytes; never render or send images, fonts, media, or opaque binaries to an AI merely to inspect them. Bound acquired-source tree entries/candidates and fail closed when a candidate cannot be captured as unchanged regular-file text or a nested archive was not recursively inspected.
- Validate every model-authored advisory response with duplicate-key-rejecting bounded JSON, exact schemas, known IDs, and non-executable one-line prose. Do not retain URLs, commands, terminal controls, forged AuraScan labels, unsupported safe/compromised claims, raw model output, or raw exceptions.
- Repair Agent
user-shellandroot-shellare compatibility names for a fail-closed local command policy, not arbitrary shell grants. Accept only allowlisted read-only diagnostics and exact policy-checked/usr/bin/pacmanforms; reject remote references, VCS/AUR/build tools, interpreters/loaders, decoding/evaluation, expansion, redirection, sensitive paths, mutation-capable diagnostic modes, and arbitrary executables before showing a confirmation. Require fresh, just-in-time approval for every exact model-authored command regardless of legacy session/plan configuration. - For native tools that parse hostile data, capture a package-managed absolute executable, revalidate its identity immediately before use, provide a minimal environment, terminate option parsing before untrusted paths, and bound time plus combined output. Treat an invoked ClamAV scan that times out, exceeds a bound, or returns an error as incomplete inspection rather than a clean result.
- Upgrade handoffs use revalidated trusted absolute executables. Planned AUR
builds block unless a future implementation can prove every package is
routed through
aurascan-makepkg; AI and confirmation do not waive this. - Treat each literal local
install=target, including a dot-prefixed hook, as mandatory scan evidence. Missing, unreadable, unsafe, ambiguous, or any symlinked component of the declared relative hook path under the package directory fails closed. A blocker may be cached only for the same failure-state identity; an unresolved hook cannot reuse or create an allow decision or review acceptance.
Publish GitHub and AUR releases
Use this path only when the user explicitly authorizes external publication:
- Read
docs/RELEASE_CHECKLIST.mdandpackaging/arch/README.md. Verify the GitHub and AUR remote heads, target branches, SSH identities, version, tag availability, and clean scope; stop on divergence rather than forcing. - Declare the release
recovery-bearingorpackage-onlyin its versioned release note. Recovery runtime/recipe, boot or image tooling, image package dependencies, and security-boundary changes shared with recovery require a recovery-bearing release. A package-only release must name the exact retained recovery image version/tag/digest and explicitly mark ISO/UKI gates as not rerun. Update its packaged manifest's application version andpackage-onlydisposition while retaining and re-verifying the exact prior ISO version, filename, public URL, digest, andrelease-readystate. Do not attach renamed recovery artifacts to a package-only release. If the retained image would be more than 90 days old on release day, require a recovery- bearing release; never reset itsreleased_atwithout new validated bytes. - Commit the completed implementation. Synchronize the version in
pyproject.toml, the recovery CLI development fallback, release tests,packaging/arch/PKGBUILD, and.SRCINFO. UseSKIPonly for this pre-tag release candidate. - For a recovery-bearing release, commit a clean candidate whose recovery
manifest is empty/build-required. Build with every AI mode disabled in a
fresh root-owned, non-writable checkout and fresh root-owned work/output
roots inside a freshly provisioned, disposable, and externally
CPU/RAM/disk-bounded Arch VM or host with no host disk or home share. Never
elevate a builder over a user-writable checkout, profile, package repository,
work path, or output path; use fixed trusted tools and a minimal environment,
and never select an artifact from an earlier output directory. Run QEMU only
through the root preflight bootstrap/launcher and private build attestation
printed by the builder. Require the bootstrap to bind itself and the
supervisor before the latter verifies the retained harness, guards,
artifacts, built readiness markers, and fixed packaged/prepared firmware
before Bash, then drops the run to an unmapped UID in a fresh network
namespace. Internal harness checks cannot retroactively make a
user-writable launch script trustworthy. Preserve the launcher's exact
attested private runtime as
TMPDIRthrough every nestedenv -ihelper; guards must validate that value and the harness must write its strict smoke result only at the launcher-expected path below that runtime. Audit the exact package build inputs/outputs, package repository, assembled image, validation UKI, profile overlay, and expanded root. Do not classify the sanitized package-test HOME as shipped recovery state, but do not relax the expanded-root prohibition on populated user homes. Treat a link to an identity path as a path reference and validate the target entry's bytes separately. - Treat these exact files as one recovery candidate:
aurascan-recovery-VERSION-x86_64.iso, its.iso.sha256sidecar, and its sorted.iso.packages.txtmanifest. Require the ISO to be strictly smaller than 2 GiB. Boot the exact ISO under SeaBIOS and OVMF UEFI; boot the local UKI built from the exact candidate code/package—not an older installed AuraScan—under ordinary and enrolled-key Secure Boot OVMF, verify unsigned rejection, run the deterministic storage/network/repair/rollback fixtures, and audit expanded artifacts using the documented bounded byte, normalized path/link, PAX metadata, and decoded-xattr checks. Reject empty/short explicit markers and short host identities instead of omitting them. Require serial-readiness checks against the complete journal-bound marker and positive service PID. Permit only zero, one, or two trailing carriage returns at its line boundary to cover systemd/QEMU transport framing; do not strip arbitrary control bytes or accept a bare marker. Run booted platform scenarios when their subsystem changed or the release claims that live outcome; otherwise record them asNOT RUNin the public limitations. Do not publish local UKIs as universal assets, and never claim an unrun gate passed. For trusted Secure Boot signature-table helpers, cap elapsed time and combined stdout/stderr independently from artifact mutation. Their file-size resource ceiling must accommodate a complete rewrite of the already size-validated UKI; never reuse the smaller diagnostic-output cap as that artifact ceiling. Revalidate the resulting file before a boot gate consumes it. Bind the signature-stripped control to the attested unsigned base through a strict, bounded PE/COFF parser. Permit a difference only in the Optional Header's four-byteCheckSum, which signing or signature removal may recompute; require equal size and exact equality everywhere else. Keep the separate requirement that reattaching the detached signature reproduces the exact signed UKI bytes. Keep removable-media writing separately fail closed: require trusted bounded absolutefindmnt/lsblkprobes, identify the running root, repeat device eligibility after confirmation and again while the exclusive descriptor is held, require the same positiveDISK-SEQat all three inspections, reject malformed or incompletelsblkJSON, and compare the inspected kernel major/minor number with the final no-follow block-device descriptor before writing and again before verification. - For a recovery-bearing release, record the exact RC commit, then pin the
tested ISO filename, public URL, and SHA-256 in a final pre-tag commit.
Do not rebuild the ISO after pinning. Restrict the delta from the recorded RC
to the packaged manifest and bounded release metadata, rerun source/package
tests, and verify that the pinned digest still matches the retained RC bytes.
Refuse the final tag while the manifest is
build-requiredor release metadata contains a pending artifact value. For either disposition, run all applicable gates, push the GitHub branch over the verified SSH remote, and require the Python 3.8/3.14 branch matrix to be green. Create and push an immutable annotated tag at the final candidate, then require the exact tag's Python 3.8/3.14 matrix to be green. A skipped, cancelled, stale, or unrelated run is not sufficient. For a recovery-bearing release, create a draft GitHub release, upload the exact three recovery assets, verify their remote names, sizes, and digests, and only then publish it; a package-only release carries its retained-image disclosure and no newly labeled recovery assets. - Download the exact public tag archive, compute its SHA-256, replace
SKIP, and regenerate.SRCINFOusing the sanitized PATH commands inpackaging/arch/README.md. Explicitly disable AI so a usermakepkgwrapper cannot contaminate metadata. Run the documented package build/check only for AuraScan's trusted recipe, then commit and push the finalized metadata. Never move or recreate the public tag to include this post-tag commit. - Use a separate clean AUR clone on
master. Preserve its maintainer/SPDX headers and AUR-only tracked files, copy only finalized package metadata, inspect the staged diff, commit, and push throughssh://aur@aur.archlinux.org/aurascan.gitwithout force. - Verify GitHub
main, the annotated tag and release, and AURmasterfrom public remotes. Report commit IDs, version, checksum, tests, and any release gate that was not run.
Validate and report
Apply the validation scope in AGENTS.md. Use meaningful regressions for changed behavior; documentation-only work needs consistency and diff checks, plus skill frontmatter validation when applicable. Run focused tests first and the full source gates for detection, parser, policy, or shared security-boundary changes:
python -m compileall aurascan tests tools
.venv/bin/python -m pytest -q
.venv/bin/python tools/audit_presenter_coverage.py --strict
.venv/bin/python tools/audit_presenter_coverage.py --strict-medium
git diff --check
Report the detection surfaces added, false-positive controls, recovery or uncertainty boundaries, files changed, and the exact validation results. Say explicitly if any check was not run.