The whole, before the parts

Software security reduces the chance and impact of unauthorized actions. It starts by identifying what needs protection and how boundaries could be crossed, then checks that controls actually enforce those boundaries. Citation needed

For example, a document service must let an owner read a private file while preventing another signed-in user from reading it. Recognizing a user is only one part of enforcing that rule. Citation needed

The concepts follow a request from checking identity to deciding whether the action is allowed, then limiting the access each part of the service receives. Together they connect the protection goal to enforceable boundaries. Citation needed

Terminology and core concepts

  1. Authentication

    Authentication checks a claimed identity. Citation needed

    Does knowing who someone is prove they may read any record?
    no Citation needed
  2. Authorization

    Authorization determines whether an actor may perform an action on a resource. Citation needed

    What should a private-record request check after identity?
    permission to access that record Citation needed
  3. Least privilege

    Least privilege gives only the permissions needed for a task. Citation needed

    Why avoid giving every service administrator access?
    to limit damage from mistakes or compromise Citation needed

Try an example

A signed-in user changes an order number in a URL and sees another customer’s order. What check is missing? Citation needed

Show the reasoning

The service checked identity but did not verify permission to access that particular order. Authorization must be enforced for the requested resource.

Citation needed

Sources and further reading

Core notes reviewed .

Learning path

Continue through Software Engineering in order, using the concepts above to connect this topic to the next.