Hosting Platforms
We have developed a series of logging requirements for hosting platforms, such as virtualised and/or containered compute with associated supporting services such as database and queuing services at different maturity tiers in order to support defensive cyber security, such as detecting breaches.
Baseline Maturity Tier
1. User directory services
Log Collection Principle(s): 1, 2
User directory services must create and forward Authentication and Authorisation events from the directory service itself.
User directories within hosting environments can be rich and diverse, such technologies include:
- Active Directory (AD)
- Azure Active Directory
- OpenLDAP
- Amazon Web Services (Accounts and Incognito)
- Okta
- Auth0
- Github.com (acting as an identity provider)
- Google Workspace (acting as an identity provider)
- Local user stores within operating systems
These event types must be logged and forwarded:
- Account creation
- Account lockout
- Account reinstatement
- Account authentication failures
- Account authentication successes after 1 or more failures
- Account password changes
- Group membership addition / deletion (in particular, any group that gives admin access)
- Group creation
- Privilege modification for users (for example, role delegation through AWS IAM)
- Multi-factor authentication state, such as:
- Enabled
- Disabled
- Reset/rotation
- Recovery method used
2. Bastion/Jump/Action-proxy services
Log Collection Principle(s): 1, 2, 6
Bastion/jump boxes that act as a management consolidation route and should be highly auditable therefore must create and forward security-related event data:
- SSH keypair generation/revocation, including:
- Public key
- Keypair ‘friendly name’ / identifier
- Account login attempts:
- Public key
- Username
3. Domain name service query logs
Log Collection Principle(s): 4
DNS query logs must be created and forwarded:
- Client IP address
- Query
- Query response content including:
- Returned record(s) or NXDOMAIN
- Authoritative nameserver
- Query response code
- Zone and/or view identifier (if local zone response and/or multiview)
This remains true for where nodes (for example, servers) may bypass internal DNS services.
4. Web proxy access logs
Log Collection Principle(s): 5
Where web traffic proxies exist, access logs should be created and forward and must, include the following variables:
- Authenticated user name (if applicable)
- Client identifiers:
- IP address
- Reverse lookup client name (if applicable)
- HTTP method (for example, CONNECT GET)
- Where available, full destination/target URL or SNI value
- Connection return status code (for example, 200 or 403)
- Size of response
5. Hypervisor events
Log Collection Principle(s): 3, 6
Hypervisors manage virtualised compute resources and are entrusted to segregate the same. All instructions to hypervisors should be highly auditable.
- Virtual machine creation (including templates)
- Identifier(s)
- Operating system image information
- Virtual machine ‘power’ events:
- Identifier(s)
- ‘Power’ on
- ‘Power’ off (including restart flag)
- Virtual machine deletion
- Identifier(s)
- Virtual machine resource modification events:
- CPU addition/removal
- RAM addition/removal
- Networking additional/removal
- Storage mount/dismount/resize
6. Orchestrator events
Log Collection Principle(s): 3, 6
Orchestrators such as Cloud Foundry and Kubernetes create and manage a variety of technology resources to facilitate an application environment.
- Resource creation (including templates)
- Identifier(s)
- Resource type
- Operating system image information (if applicable)
- Container ‘power’ events
- Identifier(s)
- ‘Power’ on
- ‘Power’ off (including restart flag)
- Resource deletion
- Identifier(s)
- Resource modification events:
- Identifier(s)
7. Allocation of IP address leases from DHCP services
Log Collection Principle(s): 3, 5
DHCP services must be configured to create and forward the following:
- Successful client DHCP requests, including:
- Requesting client MAC address
- DHCP scope identifier
- IP address leased
- IP address lease duration
- Unsuccessful client DHCP requests, including:
- Requesting client MAC address
- DHCP scope identifier (if applicable for unsuccessful request)
Enhanced Maturity Tier
1. Firewall log data for denied network traffic
Log Collection Principle(s): 5
All firewall DENY
log data must be forwarded.
- Client IP address
- Firewall/router identifier
- Request response code
- Request content, including:
- IP protocol (for example, ICMP)
- Destination/target port
- Destination/target IP address
- Destination/target hostname address (if reverse lookup performed)
2. Internal DNS namespace zone content
Log Collection Principle(s): 4
Internal domain name spaces must ultimate forward, in an RFC5936 (DNS Zone Transfer Protocol (AXFR) compatible format including all information described in the RFC.
3. DHCP scopes (and the functional segmentation of each)
Log Collection Principle(s): 5
Machine-readable DHCP scope exports (and surrounding metadata/description of the purpose of each scope) must be created and forwarded.
4. Endpoint protection security logs
Log Collection Principle(s): 6
Security log data (as defined by the vendor) must be created and forwarded.
5. Security-related logs for all Windows-based end-user devices
Log Collection Principle(s): 6
Security-related logs, as defined by NCSC’s Logging Made Easy template, from all end-user devices operating a Microsoft Windows operating system must be created and forwarded.
6. Mobile device enrollment activity
Log Collection Principle(s): 1, 2, 3, 6
Where a mobile device management solution is used and end-user devices register/enrol and de-register/de-enrol with it, enrollment data should be created in and forwarded.
- Enrolment or un-enrolment event type
- End-user device identifier(s), such as client IP address and/or MAC address and/or assigned DHCP name
- End-user account name (if applicable)
7. VPN concentrator activity data
Log Collection Principle(s): 3, 5
Where VPN services are in use, connection-related log data must be created and forwarded.
- Success or unsuccessful status
- User/certificate identifier
- Client IP address
- Concentrator identifier
8. Pipeline events
Log Collection Principle(s): 1, 2, 3, 6
Continuous integration and continuous deployment pipelines obey instructions to manage hosting environments and are a privileged position to oversee all tenant resources, they must be highly auditable to clarify activity and attribute the same.
- Source identifier(s)
- User(s)
- Repository
- Activity events
- Resource creation
- Resource destruction
Feedback
If you have any questions or comments about this guidance, such as suggestions for improvements, please contact: itpolicycontent@digital.justice.gov.uk.