Arckit fr anssi

From tractorjuice/arckit-codex · View interactive version

Arckit fr anssi is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. [COMMUNITY] Assess compliance with ANSSI security recommendations — Guide d'hygiène informatique (42 measures) and cloud security recommendations

How to use this skill

Skill file

⚠️ Community-contributed command — not part of the officially-maintained ArcKit baseline. Output should be reviewed by qualified DPO / RSSI / legal counsel before reliance. Citations to ANSSI / CNIL / EU regulations may lag the current text — verify against the source.

You are helping an enterprise architect assess compliance with ANSSI security recommendations for a French information system. ANSSI (Agence Nationale de la Sécurité des Systèmes d'Information) publishes the authoritative security guidelines for French organisations. The primary reference is the Guide d'hygiène informatique (version 2.0, 2017 — 42 measures in 10 chapters), complemented by the ANSSI Recommandations pour l'hébergement dans le cloud des systèmes d'information sensibles (version 1.0, July 2024) for cloud-hosted or hybrid systems.

These recommendations are best-practice baseline for all organisations and are referenced as mandatory input for OIV security plans, OSE NIS2 compliance, RGS homologation, and PSSI drafting.

User Input

$ARGUMENTS

Instructions

Note: Before generating, scan projects/ for existing project directories. For each project, list all ARC-*.md artifacts, check external/ for reference documents, and check 000-global/ for cross-project policies. If no external docs exist but they would improve output, ask the user.

Step 0: Read existing artifacts from the project context

MANDATORY (warn if missing):

RECOMMENDED (read if available, note if missing):

OPTIONAL (read if available, skip silently):

Step 0b: Read external documents and policies

Step 1: Identify or Create Project

Identify the target project from the hook context. If the project doesn't exist:

  1. Use Glob to list projects/*/ directories and find the highest NNN-* number
  2. Calculate the next number (zero-padded to 3 digits)
  3. Slugify the project name
  4. Use the Write tool to create projects/{NNN}-{slug}/README.md
  5. Set PROJECT_ID and PROJECT_PATH

Step 2: Read Source Artifacts

Read all documents from Step 0. From the artifacts, extract:

Step 3: ANSSI Assessment Template Reading

Read the template (with user override support):

Step 4: ANSSI Compliance Assessment

Step 4a: Scope and Context
  1. System profile: Document the system, its deployment environment, user population, and regulatory context (OIV/OSE/public sector/private)
  2. Cloud determination: If the system uses any cloud services (IaaS, PaaS, SaaS), flag that cloud security recommendations apply in addition to the 42 measures
  3. Applicability: Note any measures that are not applicable with justification (e.g. Measure 20 on Wi-Fi if the system has no Wi-Fi)
Step 4b: 42 Hygiene Measures Assessment

For each of the 42 measures, assess compliance status based on available artifacts, existing controls, and system context:

Status is assessed against each measure's standard level; where the guide also defines a renforcé (reinforced) level, note whether it is met or targeted. Assess all ten chapters of the guide:

I — Raise awareness and train (Measures 1–3): train operational teams, raise user awareness, control outsourcing (infogérance) risks

II — Know the information system (Measures 4–7): identify sensitive information and servers and keep a network diagram, inventory privileged accounts, joiner/leaver/change-of-role procedures, only managed devices on the network

III — Authenticate and control access (Measures 8–13): named accounts with separate user/administrator roles, rights on sensitive resources, password rules, protection of stored passwords, change default credentials, strong authentication where possible

IV — Secure workstations (Measures 14–18): minimum security level across all equipment, removable media, centralised management of security policies, local firewall, encryption of sensitive data sent over the Internet

V — Secure the network (Measures 19–26): segmentation and partitioning, Wi-Fi security and separation of uses, secure protocols, secure Internet gateway, partition Internet-facing services, business email protection, partner interconnections, physical access to server rooms

VI — Secure administration (Measures 27–29): no Internet access from administration devices, dedicated partitioned administration network, admin rights on workstations limited to strict need

VII — Manage mobile working (Measures 30–33): physical security of mobile devices, encryption of data on losable equipment, secure remote network connection, mobile terminal security policies

VIII — Keep the information system up to date (Measures 34–35): update policy for all components (including CERT-FR vulnerability monitoring), anticipate end of support and limit software dependencies

IX — Monitor, audit, respond (Measures 36–40): logging on the most important components, backup policy for critical components, regular security checks and audits, named IS security lead, security incident procedure

X — Going further (Measures 41–42): formal risk analysis, ANSSI-qualified products and services

Step 4c: Cloud Security Recommendations (if applicable)

If the system uses cloud services, assess the ANSSI recommendations for hosting sensitive information systems in the cloud (version 1.0, July 2024):

  1. IS category: Which category does the system fall into — DR-level sensitive IS, sensitive IS under the State "cloud au centre" doctrine, sensitive IS of an OIV or OSE, or SIIV? ANSSI recommends the cloud offer types to favour for each.
  2. Cloud provider trust level: Is the provider SecNumCloud-qualified? If not, what is the data sensitivity — does it require a qualified provider?
  3. Data sovereignty: Is data stored exclusively in the EU? Are there extraterritorial law exposure risks (US CLOUD Act, China MLSA)?
  4. Encryption: Customer-managed keys (BYOK) for sensitive data?
  5. Shared responsibility model: Is the boundary between cloud provider and customer responsibilities documented?
  6. Cloud hardening: Are cloud configurations hardened against ANSSI recommendations or CIS Benchmarks?
  7. Exit strategy: Is data portability and service reversibility contractually guaranteed?
  8. Incident response: Does the provider commit to notify within contractual timeframes?
Step 4d: Gap Analysis and Remediation Plan

For each non-compliant or partial measure:

Step 5: Generate ANSSI Assessment Document

CRITICAL: Use the Write tool to create the full assessment document.

  1. Detect version: Check for existing ARC-{PROJECT_ID}-ANSSI-v*.md files:
  1. Auto-populate Document Control:
  1. Write the complete assessment following the template, populated with Step 4 findings.

Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus ANSSI per-type checks pass.

Write the document to:

projects/{project_id}/ARC-{PROJECT_ID}-ANSSI-v{VERSION}.md

Step 6: Summary Output

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ ANSSI Security Assessment Generated
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📄 Document: projects/{project_id}/ARC-{PROJECT_ID}-ANSSI-v{VERSION}.md
📋 Document ID: {document_id}
📅 Assessment Date: {date}
🔒 Classification: Diffusion Restreinte

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Hygiene Score (42 measures)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Implemented:        {N} / 42
Partial:            {N} / 42
Not implemented:    {N} / 42
Not applicable:     {N} / 42

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌩️ Cloud Recommendations (if applicable)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

{Cloud applicable: Yes / No}
{If yes: provider qualification status, key gaps}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚨 Priority Gaps ({N} total)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔴 High ({N}): {top gap descriptions}
🟠 Medium ({N}): {medium gap descriptions}
🟡 Low ({N}):

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Next steps:
1. {If OIV/OSE: Run $arckit-fr-ebios — ANSSI findings feed Workshop 1 baseline}
2. {If cloud gaps: Run $arckit-fr-secnumcloud for provider qualification assessment}
3. Run $arckit-fr-pssi to formalise security objectives in a PSSI document
4. Run $arckit-secure to implement technical remediation measures
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Important Notes

Key References

| Document | Publisher | URL |

|----------|-----------|-----|

| Guide d'hygiène informatique (version 2.0, 2017 — 42 measures) | ANSSI | https://messervices.cyber.gouv.fr/guides/guide-dhygiene-informatique |

| Recommandations pour l'hébergement dans le cloud des SI sensibles (version 1.0, July 2024) | ANSSI | https://messervices.cyber.gouv.fr/guides/recommandations-pour-lhebergement-des-si-sensibles-dans-le-cloud |

| ANSSI publications catalogue | ANSSI | https://cyber.gouv.fr/publications |

| CERT-FR security advisories (Measure 34) | CERT-FR / ANSSI | https://www.cert.ssi.gouv.fr/ |

| ANSSI-qualified provider lists (PASSI/PRIS/PDIS) | ANSSI | https://cyber.gouv.fr/offre-de-service/solutions-certifiees-et-qualifiees/comprendre-levaluation-de-securite/qualification-de-produit-et-services/referentiels-qualification/ |

| RGS v2.0 (Référentiel Général de Sécurité) | ANSSI | https://cyber.gouv.fr/le-referentiel-general-de-securite-rgs |

Success Criteria

Example Usage

$arckit-fr-anssi Assess ANSSI hygiene compliance for a French regional prefecture information system — on-premise Windows/Active Directory environment, 300 users, no cloud services

$arckit-fr-anssi ANSSI security posture for 001 — hybrid cloud ministry portal, hosted on OVHcloud, handling citizen personal data, NIS2 OSE designation

$arckit-fr-anssi ANSSI hygiene assessment for a French private company (OIV énergie sector), SCADA-adjacent IS, mixed cloud and on-premise, 50 IT staff

Suggested Next Steps

After completing this command, consider running:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.