Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5/** @license For full copyright and license information, please see the LICENSE.md file. */
6
7namespace App\Core\Audit\Domain\Model;
8
9defined('AMMONLY_APP') || exit('Direct script access is forbidden.');
10
11/**
12 * Standard Security Audit Event Types.
13 *
14 * Covers NIST SP 800-53 AU-2 and OWASP ASVS V7.3 mandatory audit event categories.
15 *
16 * @package App\Core\Audit\Domain\Model
17 */
18enum SecurityEventType: string
19{
20    case RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED';
21    case CSRF_VIOLATION      = 'CSRF_VIOLATION';
22    case UNAUTHORIZED_ACCESS = 'UNAUTHORIZED_ACCESS';
23    case PERMISSION_DENIED   = 'PERMISSION_DENIED';
24    case AUTH_FAILURE        = 'AUTH_FAILURE';
25    case AUTH_SUCCESS        = 'AUTH_SUCCESS';
26    case CSP_VIOLATION       = 'CSP_VIOLATION';
27    case SUSPICIOUS_INPUT    = 'SUSPICIOUS_INPUT';
28    case API_KEY_EVENT       = 'API_KEY_EVENT';
29    case SYSTEM_ERROR        = 'SYSTEM_ERROR';
30    case USER_IMPERSONATION_START = 'USER_IMPERSONATION_START';
31    case USER_IMPERSONATION_STOP  = 'USER_IMPERSONATION_STOP';
32}