Skip to content

Commit

Permalink
Merge pull request #1317 from TheHive-Project/msentra-id-improvements-1
Browse files Browse the repository at this point in the history
MSEntraID - Additional Analyzers & Responders + Improvements
  • Loading branch information
nusantara-self authored Feb 24, 2025
2 parents befb41b + 89adf79 commit e390f55
Show file tree
Hide file tree
Showing 16 changed files with 1,651 additions and 200 deletions.
619 changes: 506 additions & 113 deletions analyzers/MSEntraID/MSEntraID.py

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions analyzers/MSEntraID/MSEntraID_GetDirectoryAuditLogs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "MSEntraID_GetDirectoryAuditLogs",
"version": "1.0",
"author": "nusantara-self, StrangeBee",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Pull Microsoft Entra ID directory audit logs for a user within the specified timeframe.",
"dataTypeList": ["mail"],
"command": "MSEntraID/MSEntraID.py",
"baseConfig": "MSEntraID",
"config": {
"service": "getDirectoryAuditLogs"
},
"configurationItems": [
{"name": "tenant_id",
"description": "Microsoft Entra ID Tenant ID",
"type": "string",
"multi": false,
"required": true
},
{"name": "client_id",
"description": "Client ID/Application ID of Microsoft Entra ID Registered App",
"type": "string",
"multi": false,
"required": true
},
{"name": "client_secret",
"description": "Secret for Microsoft Entra ID Registered Application",
"type": "string",
"multi": false,
"required": true
},
{"name": "lookup_range",
"description": "Check for Directory Audit Logs in the last X days. Should be between 1 and 31 days.",
"type": "number",
"multi": false,
"required": false,
"defaultValue": 7
},
{"name": "lookup_limit",
"description": "Display no more than this many Directory Audit Logs.",
"type": "number",
"multi": false,
"required": false,
"defaultValue": 12
}
],
"registration_required": true,
"subscription_required": true,
"free_subscription": false,
"service_homepage": "https://www.microsoft.com/security/business/identity-access/microsoft-entra-id"
}
38 changes: 38 additions & 0 deletions analyzers/MSEntraID/MSEntraID_GetManagedDevicesInfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "MSEntraID_GetManagedDevicesInfo",
"version": "1.0",
"author": "nusantara-self, StrangeBee",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Get Microsoft Intune Managed Device(s) Details from hostname or mail",
"dataTypeList": ["mail", "hostname"],
"command": "MSEntraID/MSEntraID.py",
"baseConfig": "MSEntraID",
"config": {
"service": "getManagedDevicesInfo"
},
"configurationItems": [
{"name": "tenant_id",
"description": "Microsoft Entra ID Tenant ID",
"type": "string",
"multi": false,
"required": true
},
{"name": "client_id",
"description": "Client ID/Application ID of Microsoft Entra ID Registered App",
"type": "string",
"multi": false,
"required": true
},
{"name": "client_secret",
"description": "Secret for Microsoft Entra ID Registered Application",
"type": "string",
"multi": false,
"required": true
}
],
"registration_required": true,
"subscription_required": true,
"free_subscription": false,
"service_homepage": "https://www.microsoft.com/security/business/identity-access/microsoft-entra-id"
}
3 changes: 3 additions & 0 deletions analyzers/MSEntraID/MSEntraID_GetSignIns.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"dataTypeList": ["mail"],
"command": "MSEntraID/MSEntraID.py",
"baseConfig": "MSEntraID",
"config": {
"service": "getSignIns"
},
"configurationItems": [
{"name": "tenant_id",
"description": "Microsoft Entra ID Tenant ID",
Expand Down
65 changes: 65 additions & 0 deletions analyzers/MSEntraID/MSEntraID_GetUserInfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "MSEntraID_GetUserInfo",
"version": "1.0",
"author": "nusantara-self, StrangeBee",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Get information about the user from Microsoft Entra ID, using the mail",
"dataTypeList": ["mail"],
"command": "MSEntraID/MSEntraID.py",
"baseConfig": "MSEntraID",
"config": {
"service": "getUserInfo"
},
"configurationItems": [
{"name": "tenant_id",
"description": "Microsoft Entra ID Tenant ID",
"type": "string",
"multi": false,
"required": true
},
{"name": "client_id",
"description": "Client ID/Application ID of Microsoft Entra ID Registered App",
"type": "string",
"multi": false,
"required": true
},
{"name": "client_secret",
"description": "Secret for Microsoft Entra ID Registered Application",
"type": "string",
"multi": false,
"required": true
},
{
"name": "params_list",
"description": "list of query params to get User information",
"type": "string",
"multi": true,
"required": true,
"defaultValue": [
"businessPhones",
"givenName",
"surname",
"userPrincipalName",
"displayName",
"jobTitle",
"mail",
"mobilePhone",
"officeLocation",
"department",
"accountEnabled",
"onPremisesSyncEnabled",
"onPremisesLastSyncDateTime",
"onPremisesSecurityIdentifier",
"proxyAddresses",
"usageLocation",
"userType",
"createdDateTime"
]
}
],
"registration_required": true,
"subscription_required": true,
"free_subscription": false,
"service_homepage": "https://www.microsoft.com/security/business/identity-access/microsoft-entra-id"
}
Loading

0 comments on commit e390f55

Please sign in to comment.