Subject: Who or What Is Asking for Access?
A subject is the person, program or other entity asking a system for access to a resource. The resource is called an object. A security decision considers what the subject wants to do to that object, such as read a record or change it.
Imagine an automated reporting service requesting a sales record. Three parts of that request matter:
| Part | Meaning | In the example |
|---|---|---|
| Subject | The requester | The reporting service |
| Object | The resource being requested | The sales record |
| Action | What the requester wants to do | Read the record |
The service may have permission to read that record so it can produce a report. That permission needn't include changing the sale amount. The same subject and object can therefore be part of an allowed request and a refused one. Changing the action can change the decision.
The National Institute of Standards and Technology's guide to attribute-based access control explicitly includes human and non-person requesters. Its model can consider characteristics of the subject, resource, action and surrounding conditions. Different systems use different rules, but the requester-resource-action distinction makes the question easier to describe.
The Many Ways to Decide Who Gets In
A subject doesn't need a person at a keyboard
The reporting service can make its request automatically. A program may act with authority assigned to it or with authority delegated by a user. Delegation means allowing another entity to act on someone's behalf, within the permission granted.
That makes it useful to be precise about which entity a system is evaluating. Saying “the employee opened the record” may describe the human purpose. When the system checks access to a file or database, a running program may be the subject making the request.
- Make a stolen password useless without the key in your hand.
- Sign in with a tap instead of typing a code.
- Protect Google, Microsoft, Apple and more than 1,000 other accounts.
Identifying that requester and allowing the action are separate jobs. Authentication checks a claimed identity. Access control determines which uses of a resource are permitted. A recognized reporting service can still be refused permission to change a record.
A system's record of activity may name the account used for a request. That alone doesn't establish which person caused the action. The reporting service could have run automatically, with nobody at the keyboard.
Object: The Particular File or Record a Rule Protects

Access Matrix: A Table That Shows Who Can Do What

Least Privilege: Give Each Account the Power Its Work Needs

QUOTE:
"Amateurs hack systems, professionals hack people."
