Blog · Web development

Application security and accreditation: the expected method

Dec 02, 202611 min readby Lilian
Application security
On this page

Risk analysis, requirements written into the specifications, segregation, logging, tested backups, a prioritised remediation plan and accreditation.

In a serious procurement, “securing the application” means nothing. What is expected is five deliverables: a risk analysis, security requirements written into the specifications, segregation of access and environments, usable logging, and a prioritised, dated remediation plan after testing.

Plus one decision to close it out: security accreditation, which is not a certificate but the formal acceptance of residual risks by a named authority, for a given period. Here is the method, with the public standards it rests on and the quantified thresholds they give.

Risk analysis first, not a list of controls

The most common mistake is to start with a list of technical controls. You install a web application firewall, tick encryption, and discover after go-live that the main risk was a data export reachable by any authenticated employee.

A risk analysis answers four questions in order. What are we protecting, meaning which business assets and data, and how severe is a breach. Who might attack and to what end, bearing in mind that a competitor, a disgruntled employee and an opportunistic ransomware crew do not take the same paths. Through what route, including the ecosystem, so suppliers and third-party integrations. And what do we do about it, with a treatment plan separating what is reduced, what is transferred and what is accepted.

In France the reference method is EBIOS Risk Manager, published by the national cybersecurity agency. It is organised in successive workshops, from framing through to risk treatment, and it is designed to be iterative: you go back to an earlier workshop when a later one reveals a blind spot. Its practical value is not formal rigour, it is that it forces you to name the scenarios before discussing tools.

The minimum deliverable, even on a small project: one page listing the five most serious scenarios, their likelihood, their impact, and for each the control chosen or the risk accepted in writing. A risk accepted in writing is not a failure, it is a decision. An unwritten risk is a surprise in waiting.

Security requirements belong in the specifications

They cannot be retrofitted during acceptance testing. The simplest way to express them without inventing a taxonomy is to lean on the OWASP Top 10, whose 2025 edition is the most recent, and to require that each category be addressed explicitly.

Two changes in that edition deserve a buyer’s attention. The software supply chain, meaning dependencies, packages and build tooling, now sits third under “Software Supply Chain Failures”. And a new category appears at tenth place, “Mishandling of Exceptional Conditions”, covering the poor handling of error paths, a classic in business applications where the happy path is polished and the failure path improvised.

Broken access control remains first, which matches what we see in the field: the most frequent flaw is not an exotic injection, it is an API answering an identifier you have no right to read. We drew the same conclusions after a public incident in our article on securing applications.

Segregate: environments first, then rights

Segregation happens at two levels, and both can be demanded.

Environments first. The French regulator’s guidance on managing development work requires development and testing to take place in an environment separate from production, on fictitious or anonymised data. It explicitly lists the use of real personal data in development and testing among the things not to do. It is the most frequently broken rule of all, and the easiest to check.

Rights next. The guidance on managing permissions requires profiles that separate tasks and responsibilities, approval of every request by a manager, removal of permissions as soon as someone changes role or leaves, and a review of permissions at least once a year involving the business. Shared accounts without traceability are listed among the things not to do.

In a procurement file, those two points translate into two simple artefacts: a diagram of environments showing which data lives where, and a role matrix showing who can read, write and export what. If the supplier cannot produce them, they have not thought about them.

Logging: what the regulator asks for, precisely

This is where the requirements are most concrete, and most often ignored. The guidance on access traceability sets out what is expected.

  • Log users’ business activity, technical interventions including those by administrators, anomalies and security events.
  • Keep those events on a rolling period of between six months and one year, barring a specific legal obligation, litigation, internal control or an identified need for post-incident analysis.
  • For application traces, record creation, consultation, sharing, modification and deletion, keeping the author’s identifier, the date, the time, the nature of the operation and the reference of the data concerned.
  • Inform users that logging is in place, after informing and consulting staff representative bodies.
  • Protect the logs against unauthorised operations, misuse by authorised accounts and overwriting, notably by making them inaccessible to the people whose activity is logged.
  • Bring logging systems into a monitoring tool and check regularly that usable logs exist.
  • Actively analyse the traces, in real time or over the short term, to detect an incident as it happens.
  • Contractually require subcontractors to apply the same logging and to notify incidents as quickly as possible.

Two points deserve emphasis. Tracing consultation, not just modification, is what lets you answer the question “who saw this record”, the one asked after a leak. And making logs inaccessible to the people being logged is an architectural requirement, not a setting: an administrator who can erase their own traces makes logging decorative.

Secure development: three non-negotiables

The same development guidance gives requirements you can verify directly in a code repository.

No secrets in version control, and secrets changed when moving to production. It is the first thing we look at when taking over a project, and the first thing we find.

Complete tests before release or update, unit, integration, functional and security, with a check that the tests remain suitable after a change. And a non-regression test, or a code review, before any production release.

Finally, the use of recognised, up-to-date components, which maps directly onto the supply chain category of the Top 10: an abandoned dependency is a delayed vulnerability. It is also what the Cyber Resilience Act is tightening on the manufacturer side.

Backups: the three, two, one rule, and the restore test

The guidance on backups and continuity states an explicit state of the art, the so-called three, two, one rule: three copies of the data, on two different media, one of them offline.

It adds three complementary requirements. At least one backup on a site geographically separate from the production site. At least one backup isolated offline, disconnected from the network, precisely because ransomware also attacks reachable backups. And protection of backup data at the same security level as production data, encryption included.

Above all, it requires regular testing of backup integrity and of the ability to restore, and lists never checking whether backups are usable among the things not to do. A backup never restored is not a backup, it is an intention. In a procurement file, ask for the date of the last successful restore test and how long it took.

Penetration testing: what to commission, and how to read the report

A badly commissioned penetration test produces a useless report. Four parameters determine its value.

The scope, stated as precise targets: this application, this API, these accounts, with or without the infrastructure. The level of knowledge given to the testers, from black box with no information to white box with source code and an administrator account, bearing in mind that grey box, with a standard user account, offers the best value on a business application. Whether a retest after remediation is included, which must be in the contract or it will not happen. And the reporting commitment: a technical report, but also a summary a management team can read.

Reading the report is then about prioritisation, not counting. A vulnerability is ranked on two axes, its real exploitability in your context and the impact if exploited. A flaw rated critical by an automated tool but unreachable from outside comes after a medium flaw exposed on your login page.

So the deliverable that matters is not the report, it is the remediation plan: one line per vulnerability, a named owner, a due date, and an owned choice between fixing, working around or accepting. Our reference deadlines: critical within seven days, high within thirty days, medium within ninety days, low at the next cycle. And a review of that plan on a fixed date, because a plan without review becomes a historical record.

Accreditation: a decision, not a certificate

Security accreditation is the act by which a designated authority certifies that it knows a system’s residual risks and accepts them, for a defined period and within a defined operating context. It is a management decision rather than a technical label, and that is what makes it useful: it forces someone to sign.

The French cybersecurity agency publishes a guide to security accreditation for information systems describing the process and the expected items. In its logic the file brings together everything above: the description of the system and its operating context, the risk analysis, the security policy and chosen controls, the results of checks and audits, the list of residual risks, and the decision itself.

Three practical consequences. Accreditation is time-bound, so it is renewed, and a substantial change to the system calls it into question before expiry. It covers an operating context, so moving the application or changing its hosting is not neutral. And it assumes an identified owner, which is often the real sticking point in an organisation: everyone wants security, nobody wants to sign for the residual risks.

Even without a regulatory obligation, we recommend borrowing the structure on a private project. A two-page document, signed by a director, listing accepted risks and the review date, beats a hundred-page audit nobody owns.

And the obligations that stack on top

Depending on your activity, application security is no longer just good practice but an obligation with deadlines attached. Reporting exploited vulnerabilities and severe incidents applies to manufacturers of products with digital elements, and entities covered by the network resilience directive have their own notification and governance duties. We covered both frameworks separately, for the Cyber Resilience Act and for NIS 2.

What those texts have in common is instructive: they all require you to detect before you report. A twenty-four hour notification duty without usable logging or monitoring is a duty you cannot meet. Which is why logging, seemingly the most thankless subject in this article, is in fact the most structural.

What we take away from it

The method comes down to five deliverables and one decision. A risk analysis that names scenarios before tools. Security requirements written into the specifications, anchored to a public standard. Segregation of environments and rights, with an annual permissions review. Logging kept for six months to a year, tracing consultation, which the people logged cannot erase. Backups following the three, two, one rule, with a dated restore test. And a prioritised remediation plan with owners and deadlines.

The decision is accreditation: someone accepts the residual risks in writing, for a given period and context. Everything else is documentation awaiting a signature.

We apply this method on our projects, including the data governance side we covered in a dedicated article, and the web fundamentals remain described in our guide to website security. If you need to put together a security file on a live project, let’s talk.

FAQ

Frequently asked questions

What is security accreditation?

It is the act by which a designated authority attests that it knows the residual risks of an information system and accepts them, for a defined period and within a defined operating context. It is not a technical label but a management decision. The file brings together the system description, the risk analysis, the security measures, the results of controls and audits, the list of residual risks, and the decision. ANSSI publishes a dedicated guide to this process.

How long should application logs be kept?

The CNIL recommends keeping logged events on a rolling period of six months to one year, unless there is a specific legal obligation, a need for litigation management, internal control, or post-incident analysis. For application traces, it requires recording creation, consultation, sharing, modification, and deletion operations, while retaining the author's identifier, the date, the time, the nature of the operation, and the reference of the data concerned.

Can production data be used for testing?

The CNIL lists the use of real personal data in development and testing among the things not to do, and requires that development and testing be carried out in an environment separate from production, using fictitious or anonymized data. If a copy of production is essential, it must be anonymized or pseudonymized before copying, and limited to the fields needed for testing.

What is the three, two, one rule for backups?

It is the standard practice recalled by the CNIL: three copies of the data, stored on two different media, one of which is offline. This is complemented by at least one backup at a geographically distinct site, protection of backups at the same security level as production, including encryption, and above all regular testing of integrity and restore capability. Never verifying restorability is listed among the mistakes to avoid.

How should fixes be prioritized after a penetration test?

Along two axes: actual exploitability in your context and impact if exploited, not the severity displayed by a tool. The useful deliverable is not the report but a remediation plan: one line per vulnerability, a named owner, a due date, and an explicit choice between fixing, working around, or accepting. Common reference timelines are seven days for a critical vulnerability, thirty days for a high one, and ninety days for a medium one.