Ahmed Benlafqih
Portrait of Ahmed Benlafqih

About

I’m Ahmed Benlafqih, an engineering student at ESILV in the connected objects and cybersecurity major, and an apprentice at Amaris Consulting as an R&D Cybersecurity Associate, in Paris.

I’m looking for a permanent position (CDI) from September 2027, first in cloud security and DevSecOps, with AI security (my long-term focus) and IoT / hardware pentesting as strengths. France comes first; I’m also looking at Ireland, Germany and the Netherlands.

My studies, from preparatory classes to ESILV, and my certificates are listed on the Studies page.

Download my CVPDF, 1 page

Experience

Apprenticeship, school client project and internships, most recent first.

  1. Since 2025Sep 2025 – presentApprenticeshipParis, hybrid

    Amaris Consulting

    Amaris Research Unit (Mantu group)

    R&D Cybersecurity Associate

    • An internal web app, built and deployed on a hardened Linux VM on Azure
    • Smart-building data and ML pipeline on Azure
    • Analysing a pipeline incident
    • CI/CD with GitHub Actions
    • Pentesting an AI agent
    • Security proposals for AI decisions in a datacenter proof of concept
    • Other work
    Read the details

    Apprenticeship alongside my engineering degree at ESILV, in Amaris’s research unit. Some of this work is covered by confidentiality rules, so parts of it are described here only in general terms.

    An internal web app, built and deployed on a hardened Linux VM on Azure

    I proposed and developed an internal web app that is now used in several countries, and I deploy and maintain it on Azure VMs. It is built with FastAPI, with role-based access control, and PostgreSQL.

    The application tracks consultant onboarding and weekly status, with Entra ID sign-in (OIDC/OAuth). An n8n workflow automates intake: an onboarding form webhook, data processing and automatic email replies, using Entra ID.

    Hardening measures applied, by layer:

    • Network. No inbound port open beyond the ones the application needs; RDP and SSH closed to the internet.
    • Identity and access. Admin sign-in through Entra ID with MFA, named accounts, least-privilege Azure RBAC roles, and a managed identity to reach other Azure resources without stored credentials. The Entra ID app used for the email replies has only the minimum permissions, scoped to the mailboxes it needs. Role-based access control in the application itself.
    • Secrets. Secrets stored in Azure Key Vault or injected as environment variables at deploy time; passwords rotated.
    • n8n. Served over HTTPS only, behind a reverse proxy; the editor isn’t reachable from the internet; user accounts with 2FA or SSO; authenticated webhooks; the encryption key kept out of workflow exports.
    • Operating system and database. Linux VM with key-only SSH, root login disabled and unused services removed; a host firewall on top of the Azure network rules; PostgreSQL reachable only locally or from the application’s subnet.
    • Resilience and monitoring. Automated backups, a restore tested at least once, logs sent to Azure Monitor, and Microsoft Defender for Cloud recommendations reviewed.

    What the tool is for, and anything that would identify the environment, stays private.

    Smart-building data and ML pipeline on Azure

    ML lead on an R&D pipeline that turns IoT data from a smart building into energy forecasts. The platform runs on Kubernetes. Sensor data goes through Azure Functions in Python that clean it into Blob Storage (and CosmosDB), with weekly scheduled retraining, then into ML models for energy consumption, anomaly detection and occupancy.

    I also fuzzed the data-cleaning code with Atheris (coverage-guided, libFuzzer-based), writing a harness that checks invariants on what the cleaning functions return.

    I’m also a co-author of a paper accepted at IEEE SmartData 2026 on energy forecasting in smart buildings. My part: the paper’s day-ahead and week-ahead results come from my pipeline, including its data cleaning and preprocessing.

    Analysing a pipeline incident

    For an incident on one of the pipeline’s functions, I wrote the analysis: I tested hypotheses one at a time, benchmarked several App Service plans, and weighed performance against cost. I also built the Azure Monitor dashboards and alerts for the pipeline, covering usage, consumption, failures and security events.

    CI/CD with GitHub Actions

    I built several GitHub Actions CI/CD pipelines. The first one tests and deploys a Python Azure Function, and I wrote it up as a handbook.

    Pentesting an AI agent

    I pentested an AI agent with a classic approach. A direct prompt injection overrode the system prompt, and the model also produced code and prompts outside its intended scope.

    Security proposals for AI decisions in a datacenter proof of concept

    For an AI-driven datacenter R&D proof of concept, I wrote a threat model and a set of security proposals. These are proposals: none of them is implemented. An NDA prevents further detail, and a publication is planned. The skills involved: threat modelling of a system where AI makes operational decisions, identity and authentication design for devices and services, and safeguards around automated decisions.

    Other work

    • Securing ML pipelines, as part of my tasks.
    • An Active Directory audit with PingCastle.
    • Risk analysis with EBIOS RM, and compliance work on ISO 27001 and ISO 27005.
    • Also managed consultants between assignments (inter-contrat), not continuously.
  2. 2026Client engagement (school project)

    Private client

    School project, ESILV

    Project leader, AI/ML security and code review

    Security audit and penetration test of a web application for a private client, as a school project at ESILV. I lead a team of 5, and I also own the AI/ML security and code review track. The work is in progress and covered by an NDA, so this entry describes only my role, what I've done and the methods and tools planned for my track.

    Read the details

    Security audit and penetration test of a web application for a private client, as a school project at ESILV. I lead a team of 5, and I also own the AI/ML security and code review track. The work is in progress and covered by an NDA, so this entry describes only my role, what I’ve done and the methods and tools planned for my track.

    As project leader, I’m responsible for the scope and rules of engagement, with written authorisation before any test; a shared threat model (STRIDE, plus a pass for any ML components in scope); tracking the findings and rating their severity with CVSS and business impact; and the final report.

    On my track, the plan covers AI/ML security and the code:

    • adversarial testing of any ML model in scope: evasion, model extraction, data poisoning and membership inference, plus prompt injection if an LLM is part of the chain;
    • manual code review, and dependency and secret audits;
    • frameworks and tools: OWASP Top 10 for LLM Applications, MITRE ATLAS, Adversarial Robustness Toolbox, Semgrep, Trivy and gitleaks.

    Done so far: a review of the cloud hosting configuration, covering how secrets and environment variables are stored, who has access to deployments and project settings, and the exposed endpoints, CORS policy and security headers. I also audited the backend’s dependencies with Trivy.

  3. 2025May 2025 – Sep 2025InternshipRemote

    Université Paris Cité

    Faculté des Sciences

    DevSecOps engineer (internship)

    PEASY-V was a linguistics tool that only ran locally. I turned it into a web service: a web front end and back end for submitting videos and getting back an aligned transcription and lexical metrics.

    Read the details

    PEASY-V was a linguistics tool that only ran locally. I turned it into a web service: a web front end and back end for submitting videos and getting back an aligned transcription and lexical metrics.

    On the server side, I set up HTTPS with a TLS certificate behind an Nginx reverse proxy, a firewall that closes every port the service doesn’t use, SSH key authentication, Docker containers for the services, deployed on Kubernetes. I built the front end and back end, with video uploads queued as processing jobs, added OIDC/OAuth sign-in, and set up monitoring of the containerized services. It is self-hosted on the university’s server.

    No files from this internship are available, so this entry has no case study.

  4. 2024Jun 2024 – Sep 2024InternshipMoissy-Cramayel (Villaroche site), on site

    Safran Aircraft Engines

    Quality assurance, non-destructive testing (NDT) training and qualification

    Internship: training coordinator (non-destructive testing), with IT and technical-content work

    First-year engineering internship (EIDD), in the team that trains and qualifies staff in non-destructive testing.

    A 3D model of an aircraft engine shown on a large screenA SNECMA ATAR 101 E5 engine on display, with its information panel
    Read the details

    First-year engineering internship (EIDD), in the team that trains and qualifies staff in non-destructive testing.

    Training content. I harmonised and modernised the training materials for the five NDT methods taught there. I built visual and 3D content in Blender and FreeCAD, modifying confidential parts so they could be shown to external learners, and translated notices and brochures into English, with Safran’s translation service.

    IT work. I fixed the Wi-Fi connection of the training screens, a problem that had gone unsolved for months, and managed those screens. For the renewal of one training room’s IT equipment, I gathered the trainers’ needs, wrote the specification and obtained supplier quotes. I helped reorganise the training school’s shared file structure, proposing a new layout so training materials are faster to find. I also optimised the NAS and debugged an internal C++/.NET application. While training staff to use the screens, I gave them basic cybersecurity awareness, such as the risks of USB drives.

    Supervision. I supervised a younger intern.

  5. 2024Apr 2024 – May 2024InternshipRabat, remote

    HACA

    Haute Autorité de la Communication Audiovisuelle, Morocco's audiovisual regulator

    Web developer (internship)

    I built a web calculator for the fees on FM and TV broadcasting frequencies, which computes them from a station's geolocation.

    Read the details

    I built a web calculator for the fees on FM and TV broadcasting frequencies, which computes them from a station’s geolocation.

    I researched the fee rules in the regulation, defined what the tool had to do, designed the interface and the calculation logic, and built it in HTML, CSS and JavaScript. I then checked its results, documented it and presented it.

    The final version isn’t available, so no code is shown here.

Student associations and tutoring

  1. Ongoing

    Self-employed

    Private tutoring

    Part-time private tutoring alongside my studies; ongoing.

    Related skills:
  2. Jan 2024 – Sep 2025

  3. Sep 2020 – Apr 2023

    CPGE Ibn Ghazi student union (BDE), Rabat

    Community lead

    Social initiatives against poverty.

Languages

English: TOEIC, 955 out of 990 (December 2025).

Interests

  • Chip reverse engineering, the Tegra X1 in particular.
  • Linux: my laptop’s configuration (Arch Linux and Hyprland) is public, in a dotfiles repository on GitHub.
  • Cycling.