diff --git a/x-pack/winlogbeat/module/security/config/winlogbeat-security.js b/x-pack/winlogbeat/module/security/config/winlogbeat-security.js index d5305e7f3f2..2dabf06d753 100644 --- a/x-pack/winlogbeat/module/security/config/winlogbeat-security.js +++ b/x-pack/winlogbeat/module/security/config/winlogbeat-security.js @@ -19,6 +19,34 @@ var security = (function () { "11": "CachedInteractive", }; + // User Account Control Attributes Table + // https://support.microsoft.com/es-us/help/305144/how-to-use-useraccountcontrol-to-manipulate-user-account-properties + var uac_flags = [ + [0x0001, 'SCRIPT'], + [0x0002, 'ACCOUNTDISABLE'], + [0x0008, 'HOMEDIR_REQUIRED'], + [0x0010, 'LOCKOUT'], + [0x0020, 'PASSWD_NOTREQD'], + [0x0040, 'PASSWD_CANT_CHANGE'], + [0x0080, 'ENCRYPTED_TEXT_PWD_ALLOWED'], + [0x0100, 'TEMP_DUPLICATE_ACCOUNT'], + [0x0200, 'NORMAL_ACCOUNT'], + [0x0800, 'INTERDOMAIN_TRUST_ACCOUNT'], + [0x1000, 'WORKSTATION_TRUST_ACCOUNT'], + [0x2000, 'SERVER_TRUST_ACCOUNT'], + [0x10000, 'DONT_EXPIRE_PASSWORD'], + [0x20000, 'MNS_LOGON_ACCOUNT'], + [0x40000, 'SMARTCARD_REQUIRED'], + [0x80000, 'TRUSTED_FOR_DELEGATION'], + [0x100000, 'NOT_DELEGATED'], + [0x200000, 'USE_DES_KEY_ONLY'], + [0x400000, 'DONT_REQ_PREAUTH'], + [0x800000, 'PASSWORD_EXPIRED'], + [0x1000000, 'TRUSTED_TO_AUTH_FOR_DELEGATION'], + [0x04000000, 'PARTIAL_SECRETS_ACCOUNT'], + ]; + + // event.action Description Table var eventActionTypes = { "4624": "logged-in", "4625": "logon-failed", @@ -30,10 +58,28 @@ var security = (function () { "4724": "reset-password", "4725": "disabled-user-account", "4726": "deleted-user-account", + "4727": "added-group-account", + "4728": "added-group-account-to", + "4729": "deleted-group-account-from", + "4730": "deleted-group-account", + "4731": "added-group-account", + "4732": "added-group-account-to", + "4733": "deleted-group-account-from", + "4734": "deleted-group-account", + "4735": "modified-group-account", + "4737": "modified-group-account", "4738": "modified-user-account", "4740": "locked-out-user-account", + "4754": "added-group-account", + "4755": "modified-group-account", + "4756": "added-group-account-to", + "4757": "deleted-group-account-from", + "4758": "deleted-group-account", + "4764": "type-changed-group-account", "4767": "unlocked-user-account", "4781": "renamed-user-account", + "4798": "group-membership-enumerated", + "4799": "user-member-enumerated", }; // Descriptions of failure status codes. @@ -1102,6 +1148,28 @@ var security = (function () { evt.Put("winlog.logon.failure.sub_status", descriptiveFailureStatus); }; + var addUACDescription = function(evt) { + var code = evt.Get("winlog.event_data.NewUacValue"); + if (!code) { + return; + } + var uac_code=parseInt(code); + var uac_result = []; + for (var i=0; i