# hkb-scp-deny-root

SCP-09 deny the root user except task-scoped root sessions (aws:AssumedRoot).

| Property | Value |
| --- | --- |
| Type | Service control policy |
| Attached to | each member account, directly |
| Source | `org/hkb-org-scp.yaml`, resource `RootDenyPolicy` |

## `Scp09DenyRootExceptTaskSessions`

```yaml
- Sid: Scp09DenyRootExceptTaskSessions
  Effect: Deny
  Action: "*"
  Resource: "*"
  Condition:
    ArnLike:
      aws:PrincipalArn: arn:aws:iam::*:root
    BoolIfExists:
      aws:AssumedRoot: "false"
```
