What a penetration test is
A penetration test simulates an attacker to check how well an application or infrastructure really holds up: authentication, session management, access control, configuration.
A strict legal framework
In Morocco as in France, fraudulent access to an automated data processing system is a criminal offence. Only written authorisation from the system owner makes a test lawful.
What the authorisation must contain
The exact scope (applications, addresses, environments), dates and times, allowed or excluded techniques, emergency contacts on both sides, and rules for handling any data accessed during the test.
After the test
The test leads to a report ranked by severity, with evidence and recommendations. Remediation follows, then a re-test to verify that the fixes work.