Is a pentest actually legal? What French law says
SYAGA CONSULTING · IT consulting and audit since 2009 · SIREN 518 489 471
Yes, a penetration test is perfectly legal in France, on one absolute condition: it must be based on prior written authorisation from the owner of the system being tested. Without that agreement, the very same technical actions fall under criminal law on unauthorised access to computer systems. The line between a legitimate audit and an offence therefore has nothing to do with the tool used; it depends on the authorisation. That is why none of our scans ever starts without this document.
What the law says, without the jargon
Articles 323-1 onwards of the French Penal Code make it an offence to fraudulently access or remain in an automated data processing system, as well as to obstruct its operation or alter its data. These provisions target unauthorised intrusion. The key word is fraudulently: what is prohibited is acting without the consent of the person who has authority over the system.
A penetration test commissioned by a company on its own system, or on a system it is entitled to dispose of, falls outside this offence precisely because it is authorised. The written authorisation is what makes lawful actions that, without it, would not be. It is also what protects you: it records who authorised what, on which scope and during which window.
Written authorisation, point by point
A serious authorisation framework is not a formality signed in a hurry. As a minimum, it specifies:
- The scope: which systems, addresses and domains are included, and which are excluded.
- The precise targets: we test what is named, nothing else.
- The testing window: the dates and times during which the tests take place.
- The nature of the tests: by default, with us, an external assessment without active exploitation, meaning that we observe the exposure without trying to take control or cause an outage.
- The right to dispose of the targets: if a gateway is hosted by a third party, the authorisation must take this into account.
Data and third parties
A penetration test may reveal exposed personal data. The work must then remain compatible with the GDPR: we measure the exposure; we do not collect or exfiltrate real data just for the sake of proof. Likewise, if your system depends on a hosting company or a service provider, the authorised scope must be consistent with your own rights over those services. Our approach is aligned with these requirements, without constituting a certification.
A word on a qualification you often hear about: the PASSI qualification, issued in France by ANSSI, is a mark of distinction and is sometimes required in certain regulated contexts, notably banking, the public sector and healthcare. For a typical SME, it is generally not required. We do not claim it if we do not hold it: a clear, honest legal framework is better than a label displayed without justification.
Practical advice for you
Remember three things. First, a pentest without written authorisation is not a pentest, it is a legal risk. Second, that authorisation protects you as much as it protects the tester. Third, a provider who starts testing before getting that framework signed is a provider to be wary of. With us, written authorisation always comes before the first packet is sent.