A security requirement is a written rule saying what software must do, or must refuse to do, to stay safe.
This guide is for anyone who asks for, plans or tests software and wants security included from the start. You do not need to write code. If you describe what an app should do, you can also describe what it must protect.
In short
- A security requirement turns "make it secure" into a clear rule that someone can build and test.
- Many teams write features as short user stories, each with a list of checks that say when it is done.
- An abuse case asks how someone could misuse a feature, and the answer becomes a new requirement.
- Each requirement should have a test, so the team can show it really works.
What you will learn
- Explain what a security requirement is, with an example.
- Spot a vague requirement and rewrite it so it can be tested.
- Ask "how could this be misused?" about a new feature.
- Check that each requirement has a test before release.
- Feature note (user story)
- a short line saying who wants something, what they want and why.
- Done checks (acceptance criteria)
- the conditions a feature must meet before the team calls it finished.
- Misuse story (abuse case)
- a description of how someone could use a feature in a way nobody planned.
What are security requirements?
Think of the brief you give a builder for a new kitchen. You list the rooms, the sink and the lights. If you never write "a lock on the back door", it may not get fitted. Security requirements are the lock lines in a software brief.
A free security community calls a security requirement a statement of the security a piece of software needs [1]. Rules can come from standards, laws and past problems [1].
A good requirement is specific. "The app must be secure" cannot be tested. "After five wrong passwords, the account waits 15 minutes" can be built and checked.
Where the comparison stops working: a builder can see the back door. In software, the doors are often hidden, such as a link that can be guessed or a form that accepts too much. You have to think about them on purpose.
Why does it matter?
What nobody writes down, nobody is asked to build or test. Rules agreed early can be planned and costed along with the feature [2].
If you run a small business that pays for an app
What could happen: your shop's new booking site works, but anyone who guesses a booking number can see other customers' details.
Check this: ask the developer which security rules are in the brief and how each will be tested.
If you are new to software work
What could happen: you build exactly what the story asked for, and an attacker uses the part nobody described.
Check this: for each story, ask "how could this be misused?" before you start.
If you test software
What could happen: all tests pass, but none of them try the wrong thing on purpose.
Check this: add at least one "should be refused" test for each sensitive feature.
Next: OWASP ASVS for Beginners
What does it look like?
Here is a made-up story for a password reset. The security parts are added.
Example only. All values are made up.
Story As a customer, I want to reset my password,
so that I can get back into my account. (1)
Done The reset link works once and ends after 00 min (2)
Abuse Someone enters many email addresses to see
which ones have accounts (3)
Rule The reply is the same whether or not the
address has an account (4)
Rule No more than 0 reset requests per address
per hour (5)
Test Ask for [email protected] and a made-up
address; check both replies match (6)
- The user story: who, what and why.
- A done check with a time limit. In a real file, this line would contain the agreed limit.
- The abuse case: a way to misuse the feature.
- A security requirement that answers the abuse case.
- A rule that limits how often it can be used.
- A test that proves requirement 4 works.
Why this is risky: without lines 3 to 6, the story only covers people who behave.
The safer way: each risky story has its abuse cases, its rules and a test for each rule.
How does it work?
- Write the story. A user story describes what a user does with the system, often as "As a user, I can..." [1]. Its acceptance criteria list the checks that mean it is done.
- Start from a checklist. You do not have to invent every rule. OWASP's Application Security Verification Standard (ASVS) is a free list of security requirements for web apps and web services [3]. Its version 5.0.0 came out on 30 May 2025 [3]. It sorts requirements into three levels, so higher-risk apps take on more [4].
- Ask how it could be misused. OWASP describes an abuse case as a way to use a feature that its maker did not expect [2]. A short meeting with business, testing and technical people can list the likely ones [2].
- Turn answers into rules. The abuse cases you choose to defend against become security requirements, or acceptance criteria on the user story [2]. Business limits count too, such as how many orders one customer can place. ASVS asks for those limits to be written down [4].
- Test each rule. Write test cases that show the new security function exists, or that an unsafe option has gone [1].

Not every user of an app is a person. Apps also talk to other apps using their own accounts and keys, called non-human identities. Those need rules too, for example "the app's payment key is kept in a secure store, not in the code".
A worked example
This story is made up to show the idea.
Freya Lloyd runs Ember Florist. She hires a developer, Soren Fenwick, to add online orders with same-day delivery to her website.
Freya's first brief lists the features: browse bouquets, pay by card, choose a delivery slot and track the order. Soren turns each into a user story. One reads: "As a customer, I want to track my order, so that I know when it will arrive."
Before building, Soren asks Freya a new question for each story: how could someone misuse this? For order tracking, they spot a problem. If tracking links use simple numbers, a visitor could change the number and see someone else's name and address.
Soren writes this down as an abuse case. Then he writes the rule that answers it: a tracking link only shows an order to the person who placed it. He adds a test. It opens order 0001 while signed in as a different test customer, and checks it is refused.
For delivery slots, Freya mentions that a rival once booked up all her Valentine's slots with fake orders. Soren adds a business limit: one customer can hold no more than three slots without paying.
He also adds one rule for the site itself. The card payment service gives the site a secret key. The rule says the key lives in a secure store, not in the website code.
Soren takes most of the other rules from the ASVS list. The site launches with each rule linked to a test. When Freya later asks for gift messages, the same question comes first: how could this be misused?
Myths and mistakes
| What people think | What is true |
|---|---|
| "The app must be secure" is a good requirement. | It cannot be built or tested. Say exactly what must happen, and when. |
| Security requirements are only for big projects. | Small apps hold card details and addresses too. A few clear rules are better than none. |
| Requirements only describe what users should do. | They should also say what the app must refuse. Abuse cases help find these [2]. |
| Testing will find any security gaps. | Tests only check what someone thought to write down. Missing rules mean missing tests. |
| Every rule must be invented from scratch. | Start from a standard list such as ASVS, then add rules for your own business [1]. |
What can I do this week?
- Pick one feature you are planning and ask: how could someone misuse this?
- Rewrite one vague security line, such as "keep data safe", as a rule someone could test.
- Add one "should be refused" check to the acceptance criteria of a sensitive story.
- Look through the ASVS list and mark the sections that fit your app.
- Ask where your app's own keys and passwords are kept, and write a rule for it.
Checklist
- Each sensitive feature has written security requirements.
- Each requirement is specific enough to test.
- Abuse cases have been listed for features that handle money, personal data or access.
- Business limits, such as orders per customer, are written down.
- Requirements start from a standard list, plus rules for our own business.
- Each requirement has at least one test.
- Keys and passwords used by the app have their own rules.
- New features get the "how could this be misused?" question too.
Common questions
What is the difference between a user story and a security requirement?
A user story says what someone wants to do and why. A security requirement says what the software must do, or refuse, to keep that safe. Security requirements are often added to a story as acceptance criteria, so they are built and tested along with the feature.
Is an abuse case the same as a misuse case?
Nearly. Both describe how a feature could be used in a harmful way. OWASP's older guidance uses "misuse case" for a story written from an attacker's view, and its cheat sheet uses "abuse case". Teams use the two terms in much the same way.
Who should write security requirements?
The whole team, with help. The person who knows the business explains what matters. Developers and testers suggest how it could go wrong. A security specialist, if you have one, checks the list. Small teams can start from a standard list such as ASVS.
When should security requirements be written?
Before the feature is built, and again whenever it changes. Agreeing the rules early means they can be planned and costed with the feature. Rules added later leave a gap until they are built.
Is this the same as threat modelling?
They are close cousins. Threat modelling looks at a whole system and asks what could go wrong. Abuse cases look at one feature at a time. Both produce security requirements, and many teams use both.
Where next?
Ready for the detail? Read the practitioner guide: Security Requirements and Abuse Cases Guide. It goes further into types of requirement, running an abuse case workshop, and tracing each requirement to a test through delivery.
Also useful:
- Threat Modelling for Beginners
- Secure Software Development Lifecycle for Beginners
- Hard-Coded Credentials for Beginners
- Abuse Case Library Template
Related NHI Mgmt Group resources: Application Security Requirements from ASVS, AI Security Requirements Template and Non-Human Identities for Beginners.
Key terms
- Security requirement
- A specific rule a system must meet to protect data, resources and access.
- User story
- A short description of a need from the view of the person who uses the software.
- Acceptance criteria
- The agreed conditions a piece of work must meet before it counts as done.
- Abuse case
- A description of how a system could be misused or attacked, written so it can be tested.
- Application Security Verification Standard (ASVS)
- An OWASP list of security requirements for building and testing web apps, grouped by level.
- Threat modelling
- A structured way to find how a system could be attacked before it happens.
- Non-human identity (NHI)
- An identity used by software, such as an app account or API key, rather than a person.
Sources and further reading
- OWASP, "Top 10 Proactive Controls 2018: Define Security Requirements" (archive page; the 2024 edition carries the same guidance). https://top10proactive.owasp.org/archive/2018/c1-security-requirements/ (accessed 3 Dec 2026).
- OWASP Cheat Sheet Series, "Abuse Case Cheat Sheet". https://cheatsheetseries.owasp.org/cheatsheets/Abuse_Case_Cheat_Sheet.html (accessed 3 Dec 2026).
- OWASP, "Application Security Verification Standard" project page. https://asvs.owasp.org/ (accessed 3 Dec 2026).
- OWASP, ASVS 5.0.0 requirement list (levels 1 to 3; business logic documentation section), GitHub. https://github.com/OWASP/ASVS (accessed 3 Dec 2026).