Back to blog
AI Governance & CNDPNovember 22, 20263 min readYounes Afares

ChatGPT & Enterprise AI in Morocco: Staying Compliant with CNDP Law 09-08 and Stopping Shadow AI

Practical governance guide for Moroccan executives and IT leaders: how to safely adopt ChatGPT and generative AI while respecting Morocco's Law 09-08 (CNDP) and eliminating Shadow AI.

Across Morocco today, employees are already using ChatGPT, Claude, Gemini, and browser AI plugins—whether management officially approved them or not.

Banning AI outright fails immediately: staff simply switch to personal smartphones, making visibility worse. Conversely, unmanaged adoption exposes companies to trade-secret leakage and non-compliance with Morocco's Law 09-08 on personal data protection, overseen by the CNDP.

Here is a pragmatic 4-step framework to govern enterprise AI safely without slowing down teams—building on our breakdown of the 5 AI cybersecurity threats targeting Moroccan SMEs and our Law 05-20 executive cybersecurity checklist.

What Morocco's Law 09-08 (CNDP) Means for AI Adoption

Whenever personal data (client names, national IDs/CIN, phone numbers, emails, payroll, medical or purchase records) enters an AI tool, Law 09-08's core obligations apply:

  1. Purpose limitation: Client or HR databases cannot be uploaded into unapproved third-party tools outside their declared purpose.
  2. Cross-border data transfers: Most consumer AI platforms process prompts outside Morocco, which triggers CNDP international transfer rules.
  3. Security & confidentiality: Organizations remain accountable for preventing unauthorized disclosure—including public models training on submitted prompts.
  4. Data minimization: Strip or anonymize personal identifiers before any LLM processing whenever possible.

4 Common Mistakes Seen in Moroccan Companies

  • Using free personal chatbot accounts to analyze financials, contracts, or client lists.
  • Connecting third-party AI meeting recorders to confidential board or legal calls.
  • Deploying internal RAG chatbots without role-based access control (letting any employee query HR or executive files).
  • Skipping practical employee training and assuming staff intuitively understand AI data retention risks.

The 4-Step AI Governance Framework

Step 1: Simple 3-Tier Data Classification

  • Green (Public): Marketing copy, market research, generic drafts → allowed on approved AI tools.
  • Orange (Internal): Standard SOPs, anonymized proposals → allowed only on enterprise AI workspaces (zero data retention) after stripping client identifiers.
  • Red (Confidential / Personal Data): Full client databases, banking/payroll records, CINs, industrial secrets → strictly prohibited on public tools; allowed only inside dedicated, encrypted, governed architectures.

Step 2: Choose the Right Technical Architecture

  • Enterprise AI Licenses with contractual zero-data-retention guarantees.
  • Private API Gateway with automated PII redaction before prompts leave your environment.
  • Self-Hosted Open-Source Models on sovereign cloud or on-premise servers for highly sensitive industries.

Step 3: Roll Out a Clear 2-Page AI Usage Charter

Keep it actionable: approved tools list, Green/Orange/Red rules, mandatory human verification against hallucinations, and a clear internal channel to request new AI tools.

Step 4: Train Managers & Review Quarterly

A single 60-minute hands-on workshop changes behavior immediately: once teams understand the risks and have a fast, approved enterprise tool, Shadow AI disappears naturally.


Need help building AI governance in Morocco? Explore our Cybersecurity & AI Governance and Secure AI Automation services, or contact us directly.

About the author
Younes Afares — Tech Founder, CTO & Executive Advisor

Founder of FikraLabs & Zymys IA, Co-Founder & CTO of Sponsio, Vice-President of the New Technologies & Innovation Commission at CGEM Souss-Massa, and Lead of GDG Agadir. 13 years of experience in AI transformation, SME cybersecurity, and Cloud/SaaS architecture in Morocco.