@oneuptime/common 14.0.98 → 14.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (527) hide show
  1. package/Models/DatabaseModels/CloudAccount.d.mts +8 -0
  2. package/Models/DatabaseModels/CloudAccount.d.ts +8 -0
  3. package/Models/DatabaseModels/CloudAccount.js +167 -0
  4. package/Models/DatabaseModels/CloudAccountFeed.d.mts +27 -0
  5. package/Models/DatabaseModels/CloudAccountFeed.d.ts +27 -0
  6. package/Models/DatabaseModels/CloudAccountFeed.js +557 -0
  7. package/Models/DatabaseModels/CloudAccountFeed.mjs +3 -0
  8. package/Models/DatabaseModels/DataSecurityCheckSetting.d.mts +17 -0
  9. package/Models/DatabaseModels/DataSecurityCheckSetting.d.ts +17 -0
  10. package/Models/DatabaseModels/DataSecurityCheckSetting.js +304 -0
  11. package/Models/DatabaseModels/DataSecurityCheckSetting.mjs +2 -0
  12. package/Models/DatabaseModels/DataSecurityCustomDataType.d.mts +25 -0
  13. package/Models/DatabaseModels/DataSecurityCustomDataType.d.ts +25 -0
  14. package/Models/DatabaseModels/DataSecurityCustomDataType.js +431 -0
  15. package/Models/DatabaseModels/DataSecurityCustomDataType.mjs +2 -0
  16. package/Models/DatabaseModels/DataSecurityFlow.d.mts +26 -0
  17. package/Models/DatabaseModels/DataSecurityFlow.d.ts +26 -0
  18. package/Models/DatabaseModels/DataSecurityFlow.js +456 -0
  19. package/Models/DatabaseModels/DataSecurityFlow.mjs +2 -0
  20. package/Models/DatabaseModels/DataSecurityIssue.d.mts +49 -0
  21. package/Models/DatabaseModels/DataSecurityIssue.d.ts +49 -0
  22. package/Models/DatabaseModels/DataSecurityIssue.js +797 -0
  23. package/Models/DatabaseModels/DataSecurityIssue.mjs +2 -0
  24. package/Models/DatabaseModels/DataSecurityIssueFeed.d.mts +43 -0
  25. package/Models/DatabaseModels/DataSecurityIssueFeed.d.ts +43 -0
  26. package/Models/DatabaseModels/DataSecurityIssueFeed.js +382 -0
  27. package/Models/DatabaseModels/DataSecurityIssueFeed.mjs +3 -0
  28. package/Models/DatabaseModels/DataSecurityResidencyRule.d.mts +18 -0
  29. package/Models/DatabaseModels/DataSecurityResidencyRule.d.ts +18 -0
  30. package/Models/DatabaseModels/DataSecurityResidencyRule.js +331 -0
  31. package/Models/DatabaseModels/DataSecurityResidencyRule.mjs +2 -0
  32. package/Models/DatabaseModels/DataSecurityScan.d.mts +29 -0
  33. package/Models/DatabaseModels/DataSecurityScan.d.ts +29 -0
  34. package/Models/DatabaseModels/DataSecurityScan.js +520 -0
  35. package/Models/DatabaseModels/DataSecurityScan.mjs +2 -0
  36. package/Models/DatabaseModels/DataSecuritySetting.d.mts +35 -0
  37. package/Models/DatabaseModels/DataSecuritySetting.d.ts +35 -0
  38. package/Models/DatabaseModels/DataSecuritySetting.js +631 -0
  39. package/Models/DatabaseModels/DataSecuritySetting.mjs +2 -0
  40. package/Models/DatabaseModels/DataStore.d.mts +83 -0
  41. package/Models/DatabaseModels/DataStore.d.ts +83 -0
  42. package/Models/DatabaseModels/DataStore.js +1343 -0
  43. package/Models/DatabaseModels/DataStore.mjs +2 -0
  44. package/Models/DatabaseModels/DataStoreAccess.d.mts +22 -0
  45. package/Models/DatabaseModels/DataStoreAccess.d.ts +22 -0
  46. package/Models/DatabaseModels/DataStoreAccess.js +407 -0
  47. package/Models/DatabaseModels/DataStoreAccess.mjs +2 -0
  48. package/Models/DatabaseModels/DataStoreFeed.d.mts +36 -0
  49. package/Models/DatabaseModels/DataStoreFeed.d.ts +36 -0
  50. package/Models/DatabaseModels/DataStoreFeed.js +613 -0
  51. package/Models/DatabaseModels/DataStoreFeed.mjs +3 -0
  52. package/Models/DatabaseModels/DataStoreFinding.d.mts +38 -0
  53. package/Models/DatabaseModels/DataStoreFinding.d.ts +38 -0
  54. package/Models/DatabaseModels/DataStoreFinding.js +683 -0
  55. package/Models/DatabaseModels/DataStoreFinding.mjs +2 -0
  56. package/Models/DatabaseModels/DataStoreLabelRule.d.mts +21 -0
  57. package/Models/DatabaseModels/DataStoreLabelRule.d.ts +21 -0
  58. package/Models/DatabaseModels/DataStoreLabelRule.js +623 -0
  59. package/Models/DatabaseModels/DataStoreLabelRule.mjs +2 -0
  60. package/Models/DatabaseModels/DataStoreOwnerRule.d.mts +24 -0
  61. package/Models/DatabaseModels/DataStoreOwnerRule.d.ts +24 -0
  62. package/Models/DatabaseModels/DataStoreOwnerRule.js +714 -0
  63. package/Models/DatabaseModels/DataStoreOwnerRule.mjs +2 -0
  64. package/Models/DatabaseModels/DataStoreOwnerTeam.d.mts +19 -0
  65. package/Models/DatabaseModels/DataStoreOwnerTeam.d.ts +19 -0
  66. package/Models/DatabaseModels/DataStoreOwnerTeam.js +477 -0
  67. package/Models/DatabaseModels/DataStoreOwnerTeam.mjs +2 -0
  68. package/Models/DatabaseModels/DataStoreOwnerUser.d.mts +18 -0
  69. package/Models/DatabaseModels/DataStoreOwnerUser.d.ts +18 -0
  70. package/Models/DatabaseModels/DataStoreOwnerUser.js +476 -0
  71. package/Models/DatabaseModels/DataStoreOwnerUser.mjs +2 -0
  72. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  73. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  74. package/Models/DatabaseModels/GlobalConfig.js +110 -0
  75. package/Models/DatabaseModels/Index.js +35 -0
  76. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
  77. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
  78. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +43 -0
  79. package/Models/DatabaseModels/ResourceAiAgent.js +3 -1
  80. package/Models/DatabaseModels/SecurityEntityCriticality.js +7 -6
  81. package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
  82. package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
  83. package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
  84. package/Models/DatabaseModels/TelemetryException.js +170 -8
  85. package/Types/AI/AIChatPageContext.d.mts +4 -1
  86. package/Types/AI/AIChatPageContext.d.ts +4 -1
  87. package/Types/AI/AIChatPageContext.js +7 -0
  88. package/Types/AI/AIChatTypes.d.mts +6 -1
  89. package/Types/AI/AIChatTypes.d.ts +6 -1
  90. package/Types/AI/AIChatTypes.js +9 -0
  91. package/Types/AI/AiAffectedResources.js +5 -3
  92. package/Types/AI/CodeFixTaskContext.d.mts +21 -0
  93. package/Types/AI/CodeFixTaskContext.d.ts +21 -0
  94. package/Types/AI/CodeFixTaskContext.js +61 -4
  95. package/Types/AI/CodeFixTaskContext.mjs +2 -0
  96. package/Types/AI/CodeTask.d.mts +2 -0
  97. package/Types/AI/CodeTask.d.ts +2 -0
  98. package/Types/AI/CodeTask.js +4 -0
  99. package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
  100. package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
  101. package/Types/AI/ResourceAiAccessPermissions.js +6 -0
  102. package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +19 -0
  103. package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +19 -0
  104. package/Types/AutoRemediation/AiRemediationCommandPlan.js +85 -10
  105. package/Types/AutoRemediation/AiRemediationCommandPlan.mjs +4 -0
  106. package/Types/AutoRemediation/RemediationTryAgain.d.mts +17 -0
  107. package/Types/AutoRemediation/RemediationTryAgain.d.ts +17 -0
  108. package/Types/AutoRemediation/RemediationTryAgain.js +104 -0
  109. package/Types/AutoRemediation/RemediationTryAgain.mjs +6 -0
  110. package/Types/CloudConnection/CloudAiAgentCost.d.mts +19 -0
  111. package/Types/CloudConnection/CloudAiAgentCost.d.ts +19 -0
  112. package/Types/CloudConnection/CloudAiAgentCost.js +95 -0
  113. package/Types/CloudConnection/CloudAiAgentCost.mjs +15 -0
  114. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +70 -0
  115. package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +70 -0
  116. package/Types/CloudConnection/CloudAiAgentSetupCommands.js +1107 -0
  117. package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +37 -0
  118. package/Types/CloudConnection/CloudConnectionCatalog.d.mts +8 -0
  119. package/Types/CloudConnection/CloudConnectionCatalog.d.ts +8 -0
  120. package/Types/CloudConnection/CloudConnectionCatalog.js +75 -1
  121. package/Types/CloudConnection/CloudConnectionCatalog.mjs +6 -0
  122. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +48 -4
  123. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +48 -4
  124. package/Types/CloudConnection/CloudConnectionSetupCommands.js +410 -16
  125. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +21 -0
  126. package/Types/CodeRepository/CodeHost.d.mts +2 -1
  127. package/Types/CodeRepository/CodeHost.d.ts +2 -1
  128. package/Types/CodeRepository/CodeHost.js +12 -5
  129. package/Types/CodeRepository/ProductionReview.d.mts +7 -0
  130. package/Types/CodeRepository/ProductionReview.d.ts +7 -0
  131. package/Types/CodeRepository/ProductionReview.js +67 -1
  132. package/Types/CodeRepository/ProductionReview.mjs +1 -0
  133. package/Types/DataSecurity/ComplianceFramework.d.mts +21 -0
  134. package/Types/DataSecurity/ComplianceFramework.d.ts +21 -0
  135. package/Types/DataSecurity/ComplianceFramework.js +97 -0
  136. package/Types/DataSecurity/ComplianceFramework.mjs +5 -0
  137. package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +41 -0
  138. package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +41 -0
  139. package/Types/DataSecurity/ComplianceRequirementCatalog.js +199 -0
  140. package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +7 -0
  141. package/Types/DataSecurity/DataCategory.d.mts +15 -0
  142. package/Types/DataSecurity/DataCategory.d.ts +15 -0
  143. package/Types/DataSecurity/DataCategory.js +61 -0
  144. package/Types/DataSecurity/DataCategory.mjs +7 -0
  145. package/Types/DataSecurity/DataConfidence.d.mts +11 -0
  146. package/Types/DataSecurity/DataConfidence.d.ts +11 -0
  147. package/Types/DataSecurity/DataConfidence.js +49 -0
  148. package/Types/DataSecurity/DataConfidence.mjs +7 -0
  149. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +106 -0
  150. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +106 -0
  151. package/Types/DataSecurity/DataSecurityApiTypes.js +53 -0
  152. package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
  153. package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +93 -0
  154. package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +93 -0
  155. package/Types/DataSecurity/DataSecurityCheckCatalog.js +1183 -0
  156. package/Types/DataSecurity/DataSecurityCheckCatalog.mjs +10 -0
  157. package/Types/DataSecurity/DataSecurityIssueStatus.d.mts +10 -0
  158. package/Types/DataSecurity/DataSecurityIssueStatus.d.ts +10 -0
  159. package/Types/DataSecurity/DataSecurityIssueStatus.js +38 -0
  160. package/Types/DataSecurity/DataSecurityIssueStatus.mjs +5 -0
  161. package/Types/DataSecurity/DataSecurityResidency.d.mts +21 -0
  162. package/Types/DataSecurity/DataSecurityResidency.d.ts +21 -0
  163. package/Types/DataSecurity/DataSecurityResidency.js +92 -0
  164. package/Types/DataSecurity/DataSecurityResidency.mjs +5 -0
  165. package/Types/DataSecurity/DataSecurityResponseAction.d.mts +14 -0
  166. package/Types/DataSecurity/DataSecurityResponseAction.d.ts +14 -0
  167. package/Types/DataSecurity/DataSecurityResponseAction.js +115 -0
  168. package/Types/DataSecurity/DataSecurityResponseAction.mjs +11 -0
  169. package/Types/DataSecurity/DataSecurityRisk.d.mts +38 -0
  170. package/Types/DataSecurity/DataSecurityRisk.d.ts +38 -0
  171. package/Types/DataSecurity/DataSecurityRisk.js +138 -0
  172. package/Types/DataSecurity/DataSecurityRisk.mjs +7 -0
  173. package/Types/DataSecurity/DataSensitivity.d.mts +13 -0
  174. package/Types/DataSecurity/DataSensitivity.d.ts +13 -0
  175. package/Types/DataSecurity/DataSensitivity.js +68 -0
  176. package/Types/DataSecurity/DataSensitivity.mjs +8 -0
  177. package/Types/DataSecurity/DataStoreAccess.d.mts +27 -0
  178. package/Types/DataSecurity/DataStoreAccess.d.ts +27 -0
  179. package/Types/DataSecurity/DataStoreAccess.js +35 -0
  180. package/Types/DataSecurity/DataStoreAccess.mjs +4 -0
  181. package/Types/DataSecurity/DataStoreEnvironment.d.mts +11 -0
  182. package/Types/DataSecurity/DataStoreEnvironment.d.ts +11 -0
  183. package/Types/DataSecurity/DataStoreEnvironment.js +80 -0
  184. package/Types/DataSecurity/DataStoreEnvironment.mjs +5 -0
  185. package/Types/DataSecurity/DataStoreKey.d.mts +18 -0
  186. package/Types/DataSecurity/DataStoreKey.d.ts +18 -0
  187. package/Types/DataSecurity/DataStoreKey.js +49 -0
  188. package/Types/DataSecurity/DataStoreKey.mjs +7 -0
  189. package/Types/DataSecurity/DataStoreKind.d.mts +67 -0
  190. package/Types/DataSecurity/DataStoreKind.d.ts +67 -0
  191. package/Types/DataSecurity/DataStoreKind.js +230 -0
  192. package/Types/DataSecurity/DataStoreKind.mjs +10 -0
  193. package/Types/DataSecurity/DataStorePosture.d.mts +40 -0
  194. package/Types/DataSecurity/DataStorePosture.d.ts +40 -0
  195. package/Types/DataSecurity/DataStorePosture.js +100 -0
  196. package/Types/DataSecurity/DataStorePosture.mjs +7 -0
  197. package/Types/DataSecurity/DataTypeCatalog.d.mts +17 -0
  198. package/Types/DataSecurity/DataTypeCatalog.d.ts +17 -0
  199. package/Types/DataSecurity/DataTypeCatalog.js +434 -0
  200. package/Types/DataSecurity/DataTypeCatalog.mjs +4 -0
  201. package/Types/Email/EmailTemplateType.d.mts +1 -0
  202. package/Types/Email/EmailTemplateType.d.ts +1 -0
  203. package/Types/Email/EmailTemplateType.js +6 -0
  204. package/Types/Monitor/CephAlertTemplates.d.mts +2 -1
  205. package/Types/Monitor/CephAlertTemplates.d.ts +2 -1
  206. package/Types/Monitor/CephAlertTemplates.js +49 -0
  207. package/Types/Monitor/CephAlertTemplates.mjs +1 -0
  208. package/Types/Monitor/DockerAlertTemplates.d.mts +2 -1
  209. package/Types/Monitor/DockerAlertTemplates.d.ts +2 -1
  210. package/Types/Monitor/DockerAlertTemplates.js +109 -37
  211. package/Types/Monitor/DockerAlertTemplates.mjs +1 -0
  212. package/Types/Monitor/DockerMetricCatalog.d.mts +1 -0
  213. package/Types/Monitor/DockerMetricCatalog.d.ts +1 -0
  214. package/Types/Monitor/DockerMetricCatalog.js +26 -52
  215. package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
  216. package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
  217. package/Types/Monitor/DockerSwarmAlertTemplates.js +65 -8
  218. package/Types/Monitor/DockerSwarmAlertTemplates.mjs +1 -0
  219. package/Types/Monitor/DockerSwarmMetricCatalog.js +7 -4
  220. package/Types/Monitor/HostAlertTemplates.d.mts +2 -1
  221. package/Types/Monitor/HostAlertTemplates.d.ts +2 -1
  222. package/Types/Monitor/HostAlertTemplates.js +48 -0
  223. package/Types/Monitor/HostAlertTemplates.mjs +1 -0
  224. package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
  225. package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
  226. package/Types/Monitor/IotAlertTemplates.js +11 -0
  227. package/Types/Monitor/IotAlertTemplates.mjs +1 -0
  228. package/Types/Monitor/KubernetesAlertTemplates.d.mts +49 -1
  229. package/Types/Monitor/KubernetesAlertTemplates.d.ts +49 -1
  230. package/Types/Monitor/KubernetesAlertTemplates.js +392 -75
  231. package/Types/Monitor/KubernetesAlertTemplates.mjs +2 -0
  232. package/Types/Monitor/KubernetesMetricCatalog.js +12 -2
  233. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +4 -4
  234. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +4 -4
  235. package/Types/Monitor/MonitorCriteriaInstance.js +107 -10
  236. package/Types/Monitor/MonitorStep.js +50 -3
  237. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +33 -11
  238. package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +33 -11
  239. package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +65 -0
  240. package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +6 -0
  241. package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +6 -0
  242. package/Types/Monitor/MonitorStepKubernetesMonitor.js +38 -1
  243. package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
  244. package/Types/Monitor/MonitorType.d.mts +1 -0
  245. package/Types/Monitor/MonitorType.d.ts +1 -0
  246. package/Types/Monitor/MonitorType.js +18 -0
  247. package/Types/Monitor/PodmanAlertTemplates.d.mts +12 -1
  248. package/Types/Monitor/PodmanAlertTemplates.d.ts +12 -1
  249. package/Types/Monitor/PodmanAlertTemplates.js +161 -33
  250. package/Types/Monitor/PodmanAlertTemplates.mjs +2 -0
  251. package/Types/Monitor/PodmanMetricCatalog.d.mts +1 -0
  252. package/Types/Monitor/PodmanMetricCatalog.d.ts +1 -0
  253. package/Types/Monitor/PodmanMetricCatalog.js +26 -52
  254. package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
  255. package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
  256. package/Types/Monitor/ProxmoxAlertTemplates.js +49 -0
  257. package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
  258. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +19 -0
  259. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +19 -0
  260. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +50 -2
  261. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.mjs +2 -0
  262. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.mts +2 -0
  263. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.ts +2 -0
  264. package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +31 -2
  265. package/Types/Monitor/StorageArrayAlertTemplates.d.mts +2 -1
  266. package/Types/Monitor/StorageArrayAlertTemplates.d.ts +2 -1
  267. package/Types/Monitor/StorageArrayAlertTemplates.js +69 -0
  268. package/Types/Monitor/StorageArrayAlertTemplates.mjs +1 -0
  269. package/Types/Monitor/VMwareAlertTemplates.d.mts +2 -1
  270. package/Types/Monitor/VMwareAlertTemplates.d.ts +2 -1
  271. package/Types/Monitor/VMwareAlertTemplates.js +50 -0
  272. package/Types/Monitor/VMwareAlertTemplates.mjs +1 -0
  273. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +44 -0
  274. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +44 -0
  275. package/Types/OnCallDutyPolicy/OnCallPersonPage.js +171 -0
  276. package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +14 -0
  277. package/Types/Permission.d.mts +51 -0
  278. package/Types/Permission.d.ts +51 -0
  279. package/Types/Permission.js +542 -0
  280. package/Types/Probe/ProbeCapability.d.mts +2 -1
  281. package/Types/Probe/ProbeCapability.d.ts +2 -1
  282. package/Types/Probe/ProbeCapability.js +8 -0
  283. package/Types/ProviderLogo/ProviderLogo.d.mts +2 -0
  284. package/Types/ProviderLogo/ProviderLogo.d.ts +2 -0
  285. package/Types/ProviderLogo/ProviderLogo.js +4 -0
  286. package/Types/ResourceAiAgent/AiResourceType.d.mts +7 -1
  287. package/Types/ResourceAiAgent/AiResourceType.d.ts +7 -1
  288. package/Types/ResourceAiAgent/AiResourceType.js +76 -2
  289. package/Types/ResourceAiAgent/AiResourceType.mjs +3 -0
  290. package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +19 -0
  291. package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +19 -0
  292. package/Types/ResourceAiAgent/CloudAiAgentNames.js +75 -0
  293. package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +16 -0
  294. package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +12 -1
  295. package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +12 -1
  296. package/Types/ResourceAiAgent/ResourceAiAccess.js +28 -1
  297. package/Types/ResourceAiAgent/ResourceAiAccess.mjs +6 -0
  298. package/Types/Rules/RuleCriteriaFieldRegistry.js +13 -0
  299. package/Types/Rules/RuleCriteriaSubject.d.mts +2 -1
  300. package/Types/Rules/RuleCriteriaSubject.d.ts +2 -1
  301. package/Types/Rules/RuleCriteriaSubject.js +3 -0
  302. package/Types/Rules/RuleRun.d.mts +2 -0
  303. package/Types/Rules/RuleRun.d.ts +2 -0
  304. package/Types/Rules/RuleRun.js +4 -0
  305. package/Types/SecurityCase/SecurityDetectionSource.d.mts +2 -1
  306. package/Types/SecurityCase/SecurityDetectionSource.d.ts +2 -1
  307. package/Types/SecurityCase/SecurityDetectionSource.js +5 -2
  308. package/Types/SecurityCase/SecurityEntity.d.mts +5 -0
  309. package/Types/SecurityCase/SecurityEntity.d.ts +5 -0
  310. package/Types/SecurityCase/SecurityEntity.js +39 -1
  311. package/Types/SecurityCase/SecurityEntity.mjs +4 -0
  312. package/Types/SecurityCase/SecurityEntityRisk.js +14 -6
  313. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
  314. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
  315. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +124 -1
  316. package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.mjs +2 -0
  317. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.mts +3 -1
  318. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.ts +3 -1
  319. package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js +4 -0
  320. package/Types/SecurityEvent/DataSecuritySignal.d.mts +33 -0
  321. package/Types/SecurityEvent/DataSecuritySignal.d.ts +33 -0
  322. package/Types/SecurityEvent/DataSecuritySignal.js +114 -0
  323. package/Types/SecurityEvent/DataSecuritySignal.mjs +14 -0
  324. package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +7 -1
  325. package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +7 -1
  326. package/Types/SecurityEvent/DetectionRuleDataKind.js +74 -0
  327. package/Types/SecurityEvent/DetectionRuleLibrary.d.mts +2 -1
  328. package/Types/SecurityEvent/DetectionRuleLibrary.d.ts +2 -1
  329. package/Types/SecurityEvent/DetectionRuleLibrary.js +730 -0
  330. package/Types/SecurityEvent/OcsfEventClass.js +31 -2
  331. package/Types/SecurityEvent/SecurityLogFormat.d.mts +15 -0
  332. package/Types/SecurityEvent/SecurityLogFormat.d.ts +15 -0
  333. package/Types/SecurityEvent/SecurityLogFormat.js +123 -10
  334. package/Types/SecurityEvent/SecurityLogFormat.mjs +4 -0
  335. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +3 -0
  336. package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +3 -0
  337. package/Types/SecurityPlaybook/SecurityPlaybookAction.js +37 -0
  338. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +3 -0
  339. package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +3 -0
  340. package/Types/SecurityPlaybook/SecurityPlaybookStep.js +9 -0
  341. package/Types/SecurityPlaybook/SecurityProtectedEntity.js +8 -1
  342. package/Types/Telemetry/ExceptionAIDigest.d.mts +31 -0
  343. package/Types/Telemetry/ExceptionAIDigest.d.ts +31 -0
  344. package/Types/Telemetry/ExceptionAIDigest.js +131 -0
  345. package/Types/Telemetry/ExceptionAIDigest.mjs +13 -0
  346. package/Types/Telemetry/ExceptionAIExplanation.d.mts +37 -0
  347. package/Types/Telemetry/ExceptionAIExplanation.d.ts +37 -0
  348. package/Types/Telemetry/ExceptionAIExplanation.js +110 -0
  349. package/Types/Telemetry/ExceptionAIExplanation.mjs +12 -0
  350. package/Types/Telemetry/TraceSpanType.d.mts +1 -1
  351. package/Types/Telemetry/TraceSpanType.d.ts +1 -1
  352. package/Types/Telemetry/TraceSpanType.js +33 -8
  353. package/Types/Telemetry/TraceSpanType.mjs +1 -1
  354. package/Types/UpdateCheck/SecurityAdvisory.d.mts +39 -0
  355. package/Types/UpdateCheck/SecurityAdvisory.d.ts +39 -0
  356. package/Types/UpdateCheck/SecurityAdvisory.js +221 -0
  357. package/Types/UpdateCheck/SecurityAdvisory.mjs +7 -0
  358. package/Types/UpdateCheck/UpdateCheckFailure.d.mts +9 -0
  359. package/Types/UpdateCheck/UpdateCheckFailure.d.ts +9 -0
  360. package/Types/UpdateCheck/UpdateCheckFailure.js +32 -0
  361. package/Types/UpdateCheck/UpdateCheckFailure.mjs +3 -0
  362. package/Types/UpdateCheck/UpdateStatus.d.mts +44 -0
  363. package/Types/UpdateCheck/UpdateStatus.d.ts +44 -0
  364. package/Types/UpdateCheck/UpdateStatus.js +195 -0
  365. package/Types/UpdateCheck/UpdateStatus.mjs +3 -0
  366. package/Types/Workspace/WorkspaceMessagePayload.d.mts +1 -0
  367. package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -0
  368. package/Utils/AiRemediation/CloudChangeDryRunPlan.d.mts +17 -0
  369. package/Utils/AiRemediation/CloudChangeDryRunPlan.d.ts +17 -0
  370. package/Utils/AiRemediation/CloudChangeDryRunPlan.js +122 -0
  371. package/Utils/AiRemediation/CloudChangeDryRunPlan.mjs +7 -0
  372. package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.mts +4 -0
  373. package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.ts +4 -0
  374. package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +177 -0
  375. package/Utils/AiRemediation/Resource/CloudCommandPolicy.mjs +4 -0
  376. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +144 -0
  377. package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +144 -0
  378. package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +1964 -0
  379. package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +48 -0
  380. package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +4 -0
  381. package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +23 -0
  382. package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +23 -0
  383. package/Utils/DataSecurity/CustomDataTypeDetector.js +130 -0
  384. package/Utils/DataSecurity/CustomDataTypeDetector.mjs +8 -0
  385. package/Utils/DataSecurity/Detector.d.mts +26 -0
  386. package/Utils/DataSecurity/Detector.d.ts +26 -0
  387. package/Utils/DataSecurity/Detector.js +83 -0
  388. package/Utils/DataSecurity/Detector.mjs +8 -0
  389. package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +12 -0
  390. package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +12 -0
  391. package/Utils/DataSecurity/Detectors/ContactDetectors.js +915 -0
  392. package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +12 -0
  393. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.mts +3 -0
  394. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.ts +3 -0
  395. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.js +52 -0
  396. package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.mjs +3 -0
  397. package/Utils/DataSecurity/Detectors/FinancialDetectors.d.mts +8 -0
  398. package/Utils/DataSecurity/Detectors/FinancialDetectors.d.ts +8 -0
  399. package/Utils/DataSecurity/Detectors/FinancialDetectors.js +566 -0
  400. package/Utils/DataSecurity/Detectors/FinancialDetectors.mjs +8 -0
  401. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.mts +3 -0
  402. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.ts +3 -0
  403. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.js +2415 -0
  404. package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.mjs +3 -0
  405. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.mts +3 -0
  406. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.ts +3 -0
  407. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.js +258 -0
  408. package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.mjs +3 -0
  409. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.mts +3 -0
  410. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.ts +3 -0
  411. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.js +115 -0
  412. package/Utils/DataSecurity/Detectors/HealthRecordDetectors.mjs +3 -0
  413. package/Utils/DataSecurity/Detectors/Index.d.mts +4 -0
  414. package/Utils/DataSecurity/Detectors/Index.d.ts +4 -0
  415. package/Utils/DataSecurity/Detectors/Index.js +47 -0
  416. package/Utils/DataSecurity/Detectors/Index.mjs +4 -0
  417. package/Utils/DataSecurity/Detectors/SecretDetectors.d.mts +11 -0
  418. package/Utils/DataSecurity/Detectors/SecretDetectors.d.ts +11 -0
  419. package/Utils/DataSecurity/Detectors/SecretDetectors.js +1733 -0
  420. package/Utils/DataSecurity/Detectors/SecretDetectors.mjs +11 -0
  421. package/Utils/DataSecurity/FieldClassifier.d.mts +20 -0
  422. package/Utils/DataSecurity/FieldClassifier.d.ts +20 -0
  423. package/Utils/DataSecurity/FieldClassifier.js +247 -0
  424. package/Utils/DataSecurity/FieldClassifier.mjs +5 -0
  425. package/Utils/DataSecurity/FieldCollector.d.mts +23 -0
  426. package/Utils/DataSecurity/FieldCollector.d.ts +23 -0
  427. package/Utils/DataSecurity/FieldCollector.js +81 -0
  428. package/Utils/DataSecurity/FieldCollector.mjs +3 -0
  429. package/Utils/DataSecurity/FieldNameHints.d.mts +9 -0
  430. package/Utils/DataSecurity/FieldNameHints.d.ts +9 -0
  431. package/Utils/DataSecurity/FieldNameHints.js +184 -0
  432. package/Utils/DataSecurity/FieldNameHints.mjs +6 -0
  433. package/Utils/DataSecurity/FindingTally.d.mts +44 -0
  434. package/Utils/DataSecurity/FindingTally.d.ts +44 -0
  435. package/Utils/DataSecurity/FindingTally.js +138 -0
  436. package/Utils/DataSecurity/FindingTally.mjs +6 -0
  437. package/Utils/DataSecurity/Masking.d.mts +6 -0
  438. package/Utils/DataSecurity/Masking.d.ts +6 -0
  439. package/Utils/DataSecurity/Masking.js +159 -0
  440. package/Utils/DataSecurity/Masking.mjs +7 -0
  441. package/Utils/DataSecurity/PathPattern.d.mts +3 -0
  442. package/Utils/DataSecurity/PathPattern.d.ts +3 -0
  443. package/Utils/DataSecurity/PathPattern.js +55 -0
  444. package/Utils/DataSecurity/PathPattern.mjs +4 -0
  445. package/Utils/DataSecurity/Sha256.d.mts +1 -0
  446. package/Utils/DataSecurity/Sha256.d.ts +1 -0
  447. package/Utils/DataSecurity/Sha256.js +94 -0
  448. package/Utils/DataSecurity/Sha256.mjs +2 -0
  449. package/Utils/DataSecurity/TextScanner.d.mts +35 -0
  450. package/Utils/DataSecurity/TextScanner.d.ts +35 -0
  451. package/Utils/DataSecurity/TextScanner.js +303 -0
  452. package/Utils/DataSecurity/TextScanner.mjs +8 -0
  453. package/Utils/DataSecurity/Validators.d.mts +16 -0
  454. package/Utils/DataSecurity/Validators.d.ts +16 -0
  455. package/Utils/DataSecurity/Validators.js +339 -0
  456. package/Utils/DataSecurity/Validators.mjs +17 -0
  457. package/Utils/Exceptions/ExceptionIssueState.d.mts +18 -0
  458. package/Utils/Exceptions/ExceptionIssueState.d.ts +18 -0
  459. package/Utils/Exceptions/ExceptionIssueState.js +131 -0
  460. package/Utils/Exceptions/ExceptionIssueState.mjs +8 -0
  461. package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +2 -0
  462. package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +2 -0
  463. package/Utils/HostCollector/HostCollectorDefaultConfig.js +39 -1
  464. package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +2 -0
  465. package/Utils/LabelRuleImportExport.js +17 -3
  466. package/Utils/Monitor/PlatformResourceIdentity.js +7 -4
  467. package/Utils/SecurityAdvisoryMatcher.d.mts +33 -0
  468. package/Utils/SecurityAdvisoryMatcher.d.ts +33 -0
  469. package/Utils/SecurityAdvisoryMatcher.js +291 -0
  470. package/Utils/SecurityAdvisoryMatcher.mjs +2 -0
  471. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.mts +24 -0
  472. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.ts +24 -0
  473. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +380 -0
  474. package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.mjs +15 -0
  475. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.mts +29 -0
  476. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.ts +29 -0
  477. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +527 -0
  478. package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.mjs +13 -0
  479. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.mts +21 -0
  480. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.ts +21 -0
  481. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +365 -0
  482. package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.mjs +11 -0
  483. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +17 -0
  484. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +17 -0
  485. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +344 -0
  486. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +12 -0
  487. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +27 -0
  488. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +27 -0
  489. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +326 -0
  490. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +10 -0
  491. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.mts +38 -0
  492. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.ts +38 -0
  493. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.js +629 -0
  494. package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.mjs +13 -0
  495. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +9 -0
  496. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +9 -0
  497. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +63 -3
  498. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
  499. package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +54 -0
  500. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.mts +26 -0
  501. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.ts +26 -0
  502. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +1046 -0
  503. package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.mjs +11 -0
  504. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.mts +19 -0
  505. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.ts +19 -0
  506. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.js +724 -0
  507. package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.mjs +7 -0
  508. package/Utils/SecurityEvent/SecurityRecordReading.d.mts +32 -0
  509. package/Utils/SecurityEvent/SecurityRecordReading.d.ts +32 -0
  510. package/Utils/SecurityEvent/SecurityRecordReading.js +78 -0
  511. package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
  512. package/Utils/Sms/OnCallPageSms.d.mts +1 -0
  513. package/Utils/Sms/OnCallPageSms.d.ts +1 -0
  514. package/Utils/Sms/OnCallPageSms.js +16 -2
  515. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +44 -0
  516. package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +44 -0
  517. package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +223 -0
  518. package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +8 -0
  519. package/Utils/Syslog/LeefParser.d.mts +28 -0
  520. package/Utils/Syslog/LeefParser.d.ts +28 -0
  521. package/Utils/Syslog/LeefParser.js +326 -0
  522. package/Utils/Syslog/LeefParser.mjs +10 -0
  523. package/Utils/VersionRange.d.mts +34 -0
  524. package/Utils/VersionRange.d.ts +34 -0
  525. package/Utils/VersionRange.js +422 -0
  526. package/Utils/VersionRange.mjs +5 -0
  527. package/package.json +1 -1
@@ -3,7 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SECURITY_EVENT_ENTITY_FIELDS = exports.SECURITY_ENTITY_LIMIT = exports.SecurityEntityType = void 0;
6
+ exports.SECURITY_EVENT_ENTITY_FIELDS = exports.DATA_STORE_ENTITY_PREFIX = exports.SECURITY_ENTITY_LIMIT = exports.SecurityEntityType = void 0;
7
+ exports.getDataStoreEntityValue = getDataStoreEntityValue;
8
+ exports.isDataStoreEntityValue = isDataStoreEntityValue;
9
+ exports.getDataStoreKeyOfEntityValue = getDataStoreKeyOfEntityValue;
7
10
  exports.securityEntityTypeForField = securityEntityTypeForField;
8
11
  exports.isIpAddress = isIpAddress;
9
12
  exports.inferSecurityEntityType = inferSecurityEntityType;
@@ -29,10 +32,35 @@ var SecurityEntityType;
29
32
  SecurityEntityType["Url"] = "URL";
30
33
  SecurityEntityType["FileHash"] = "File Hash";
31
34
  SecurityEntityType["Process"] = "Process";
35
+ // A bucket, database or telemetry stream Data Security watches.
36
+ SecurityEntityType["DataStore"] = "Data Store";
32
37
  SecurityEntityType["Other"] = "Other";
33
38
  })(SecurityEntityType || (exports.SecurityEntityType = SecurityEntityType = {}));
34
39
  // The most entities a case or detection keeps, so one noisy match cannot grow a row without bound.
35
40
  exports.SECURITY_ENTITY_LIMIT = 50;
41
+ /*
42
+ * A data store as Security Operations names it: "data-store:" and the
43
+ * store's key (Types/DataSecurity/DataStoreKey) - one name for the store
44
+ * whichever source speaks of it, so a Data Security issue, a detection
45
+ * rule grouped on the store and its criticality entry all mean one entity.
46
+ */
47
+ exports.DATA_STORE_ENTITY_PREFIX = "data-store:";
48
+ function getDataStoreEntityValue(storeKey) {
49
+ return `${exports.DATA_STORE_ENTITY_PREFIX}${(storeKey || "").trim()}`;
50
+ }
51
+ // Whether a value names a data store: the prefix, whatever its case, and a key after it.
52
+ function isDataStoreEntityValue(value) {
53
+ const trimmed = (value || "").trim();
54
+ return (trimmed.length > exports.DATA_STORE_ENTITY_PREFIX.length &&
55
+ trimmed.slice(0, exports.DATA_STORE_ENTITY_PREFIX.length).toLowerCase() ===
56
+ exports.DATA_STORE_ENTITY_PREFIX);
57
+ }
58
+ // The store's key in a data store's entity value, or "" for any other value.
59
+ function getDataStoreKeyOfEntityValue(value) {
60
+ return isDataStoreEntityValue(value)
61
+ ? (value || "").trim().slice(exports.DATA_STORE_ENTITY_PREFIX.length).trim()
62
+ : "";
63
+ }
36
64
  /*
37
65
  * The typed security-event columns, and the entity each one holds. A value
38
66
  * read from one of these is typed by where it came from, which beats any
@@ -112,12 +140,20 @@ function isIpAddress(value) {
112
140
  * An email address reads as a user (in security data it is almost always a
113
141
  * sign-in name); a dotted name as a domain; anything that matches nothing
114
142
  * is Other, never a guess.
143
+ *
144
+ * A data store's name is OneUptime's own ("data-store:" and its key), and
145
+ * is read first: a key holds an ARN, a Google Cloud resource name or a
146
+ * traced database's address, whose colons, slashes and "@" the shapes
147
+ * below would take for a URL, an address or a user.
115
148
  */
116
149
  function inferSecurityEntityType(value) {
117
150
  const trimmed = (value || "").trim();
118
151
  if (!trimmed) {
119
152
  return SecurityEntityType.Other;
120
153
  }
154
+ if (isDataStoreEntityValue(trimmed)) {
155
+ return SecurityEntityType.DataStore;
156
+ }
121
157
  if (isIpAddress(trimmed)) {
122
158
  return SecurityEntityType.IpAddress;
123
159
  }
@@ -203,6 +239,8 @@ function getSecurityEntityIcon(type) {
203
239
  return IconProp_1.default.Fingerprint;
204
240
  case SecurityEntityType.Process:
205
241
  return IconProp_1.default.Terminal;
242
+ case SecurityEntityType.DataStore:
243
+ return IconProp_1.default.Database;
206
244
  default:
207
245
  return IconProp_1.default.Tag;
208
246
  }
@@ -1,10 +1,14 @@
1
1
  import commonJsModule from "./SecurityEntity.js";
2
+ export const DATA_STORE_ENTITY_PREFIX = commonJsModule.DATA_STORE_ENTITY_PREFIX;
2
3
  export const SECURITY_ENTITY_LIMIT = commonJsModule.SECURITY_ENTITY_LIMIT;
3
4
  export const SECURITY_EVENT_ENTITY_FIELDS = commonJsModule.SECURITY_EVENT_ENTITY_FIELDS;
4
5
  export const SecurityEntityType = commonJsModule.SecurityEntityType;
5
6
  export const entitiesFromObservables = commonJsModule.entitiesFromObservables;
7
+ export const getDataStoreEntityValue = commonJsModule.getDataStoreEntityValue;
8
+ export const getDataStoreKeyOfEntityValue = commonJsModule.getDataStoreKeyOfEntityValue;
6
9
  export const getSecurityEntityIcon = commonJsModule.getSecurityEntityIcon;
7
10
  export const inferSecurityEntityType = commonJsModule.inferSecurityEntityType;
11
+ export const isDataStoreEntityValue = commonJsModule.isDataStoreEntityValue;
8
12
  export const isIpAddress = commonJsModule.isIpAddress;
9
13
  export const mergeSecurityEntities = commonJsModule.mergeSecurityEntities;
10
14
  export const readSecurityEntities = commonJsModule.readSecurityEntities;
@@ -15,8 +15,9 @@ const SecurityEntity_1 = require("./SecurityEntity");
15
15
  * a host and an Okta sign-in from a new country are each worth a glance; the
16
16
  * same account in all three in a week is worth a case. So every finding -
17
17
  * a detection rule's match, a threat intel match, an alert a connected
18
- * security product raised - adds risk points to the entity it is about, and
19
- * the entity's risk score is what those points add up to over the last
18
+ * security product raised, an issue Data Security opened on a store - adds
19
+ * risk points to the entity it is about, and the entity's risk score is
20
+ * what those points add up to over the last
20
21
  * ENTITY_RISK_WINDOW_IN_DAYS days. When it reaches the project's threshold,
21
22
  * a case opens about the entity (or the open one about it takes the risk
22
23
  * in), naming everything that added to it. This is how the leading SIEMs
@@ -64,7 +65,10 @@ exports.DEFAULT_ENTITY_RISK_CASE_THRESHOLD = 100;
64
65
  exports.ENTITY_RISK_CASE_THRESHOLD_MIN = 10;
65
66
  exports.ENTITY_RISK_CASE_THRESHOLD_MAX = 10000;
66
67
  /*
67
- * The kinds of entity that carry risk: who acted and where. A domain, a URL
68
+ * The kinds of entity that carry risk: who acted and where - and the data
69
+ * it was done to. A bucket made public, a snapshot shared and a Critical
70
+ * Data Security issue on the same store within a week are worth a case
71
+ * about the store, as three findings about one account are. A domain, a URL
68
72
  * or a file hash is what threat intel already says is bad; a process name is
69
73
  * the same on every machine. Neither is somebody to investigate.
70
74
  */
@@ -72,6 +76,7 @@ exports.RISK_ENTITY_TYPES = [
72
76
  SecurityEntity_1.SecurityEntityType.User,
73
77
  SecurityEntity_1.SecurityEntityType.Host,
74
78
  SecurityEntity_1.SecurityEntityType.IpAddress,
79
+ SecurityEntity_1.SecurityEntityType.DataStore,
75
80
  ];
76
81
  /*
77
82
  * What a finding adds, by its severity. Informational findings are context
@@ -145,14 +150,17 @@ exports.SECURITY_ENTITY_CRITICALITY_WEIGHTS = {
145
150
  };
146
151
  exports.SECURITY_ENTITY_CRITICALITY_VALUE_MAX_LENGTH = 500;
147
152
  /*
148
- * What can add risk: the three detection sources. A person opening a case
149
- * judged it already, and a case risk opened adds nothing back to the risk
150
- * that opened it.
153
+ * What can add risk: the detection sources - the project's rules, threat
154
+ * intel, connected products, and Data Security, whose issue on a store is a
155
+ * finding about the store (each check a source of its own). A person
156
+ * opening a case judged it already, and a case risk opened adds nothing
157
+ * back to the risk that opened it.
151
158
  */
152
159
  exports.RISK_DETECTION_SOURCES = [
153
160
  SecurityDetectionSource_1.default.DetectionRule,
154
161
  SecurityDetectionSource_1.default.ThreatIntel,
155
162
  SecurityDetectionSource_1.default.ConnectedProduct,
163
+ SecurityDetectionSource_1.default.DataSecurity,
156
164
  ];
157
165
  /*
158
166
  * THE RISKIEST ENTITIES, as the Security Overview shows them: the top of
@@ -21,6 +21,8 @@ export interface ConnectorField {
21
21
  isAdvanced?: boolean | undefined;
22
22
  }
23
23
  export declare const CLOSE_ALERTS_WHEN_CASE_CLOSES_KEY: string;
24
+ export declare const MICROSOFT_365_AUDIT_KEY: string;
25
+ export declare const GOOGLE_WORKSPACE_DRIVE_KEY: string;
24
26
  export interface ConnectorAlertingOnlyControl {
25
27
  title: string;
26
28
  description: string;
@@ -21,6 +21,8 @@ export interface ConnectorField {
21
21
  isAdvanced?: boolean | undefined;
22
22
  }
23
23
  export declare const CLOSE_ALERTS_WHEN_CASE_CLOSES_KEY: string;
24
+ export declare const MICROSOFT_365_AUDIT_KEY: string;
25
+ export declare const GOOGLE_WORKSPACE_DRIVE_KEY: string;
24
26
  export interface ConnectorAlertingOnlyControl {
25
27
  title: string;
26
28
  description: string;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SecurityEventConnectorCatalog = exports.CLOSE_ALERTS_WHEN_CASE_CLOSES_KEY = exports.SecurityEventConnectorCategories = void 0;
6
+ exports.SecurityEventConnectorCatalog = exports.GOOGLE_WORKSPACE_DRIVE_KEY = exports.MICROSOFT_365_AUDIT_KEY = exports.CLOSE_ALERTS_WHEN_CASE_CLOSES_KEY = exports.SecurityEventConnectorCategories = void 0;
7
7
  exports.getSecurityEventConnectorDefinition = getSecurityEventConnectorDefinition;
8
8
  exports.getSecurityEventConnectorTitle = getSecurityEventConnectorTitle;
9
9
  const IconProp_1 = __importDefault(require("../../Icon/IconProp"));
@@ -17,6 +17,14 @@ exports.SecurityEventConnectorCategories = ["SIEM", "EDR / XDR", "Cloud security
17
17
  * toggle in the catalog of every provider whose alerts OneUptime can close.
18
18
  */
19
19
  exports.CLOSE_ALERTS_WHEN_CASE_CLOSES_KEY = "closeAlertsWhenCaseCloses";
20
+ /*
21
+ * The Microsoft Entra ID connection's option that also reads the Microsoft
22
+ * 365 audit log (Exchange, SharePoint, OneDrive, Teams) through the Office
23
+ * 365 Management Activity API, with the same app registration.
24
+ */
25
+ exports.MICROSOFT_365_AUDIT_KEY = "includeMicrosoft365Audit";
26
+ // The Google Workspace connection's option that also reads Drive activity.
27
+ exports.GOOGLE_WORKSPACE_DRIVE_KEY = "includeDrive";
20
28
  const MICROSOFT_CLOUD_OPTIONS = [
21
29
  { label: "Azure public cloud", value: "public" },
22
30
  { label: "Azure Government (US)", value: "usgov" },
@@ -384,6 +392,121 @@ exports.SecurityEventConnectorCatalog = [
384
392
  },
385
393
  ],
386
394
  },
395
+ {
396
+ provider: SecurityEventConnectorProvider_1.default.MicrosoftEntraId,
397
+ title: "Microsoft Entra ID",
398
+ vendorName: "Microsoft",
399
+ productName: "Microsoft Entra ID",
400
+ description: "Import sign-ins and directory changes from Microsoft Entra ID, and the Microsoft 365 audit log if you choose, as OCSF identity events.",
401
+ category: "Identity",
402
+ icon: IconProp_1.default.Identification,
403
+ logo: ProviderLogo_1.default.MicrosoftEntraId,
404
+ docsPath: "/docs/integrations/microsoft-entra-id",
405
+ defaultPollIntervalInMinutes: 5,
406
+ supportsAlertingOnlyToggle: false,
407
+ importedRecordName: "record",
408
+ /*
409
+ * Microsoft documents sign-in and audit logs as arriving minutes after
410
+ * the activity, and later at busy times: each poll re-reads the half
411
+ * hour before its cursor, and the id dedupe drops what it has.
412
+ */
413
+ cursorOverlapInMinutes: 30,
414
+ configFields: [
415
+ {
416
+ key: "tenantId",
417
+ title: "Directory (tenant) ID",
418
+ description: "The Microsoft Entra tenant to read sign-ins and directory changes from.",
419
+ type: "text",
420
+ required: true,
421
+ placeholder: "00000000-0000-0000-0000-000000000000",
422
+ },
423
+ {
424
+ key: "clientId",
425
+ title: "Application (client) ID",
426
+ description: "The app registration granted the AuditLog.Read.All application permission.",
427
+ type: "text",
428
+ required: true,
429
+ placeholder: "00000000-0000-0000-0000-000000000000",
430
+ },
431
+ {
432
+ key: "cloud",
433
+ title: "Cloud",
434
+ description: "Which Microsoft cloud hosts the tenant.",
435
+ type: "dropdown",
436
+ required: true,
437
+ options: MICROSOFT_CLOUD_OPTIONS,
438
+ defaultValue: "public",
439
+ },
440
+ {
441
+ key: exports.MICROSOFT_365_AUDIT_KEY,
442
+ title: "Microsoft 365 audit log",
443
+ description: "Also import Exchange, SharePoint, OneDrive and Teams activity. The app registration needs the ActivityFeed.Read permission of the Office 365 Management APIs.",
444
+ type: "toggle",
445
+ required: false,
446
+ defaultValue: false,
447
+ isOption: true,
448
+ },
449
+ ],
450
+ secretFields: [
451
+ {
452
+ key: "clientSecret",
453
+ title: "Client secret",
454
+ description: "A client secret of the app registration. Encrypted at rest and never returned by the API.",
455
+ type: "password",
456
+ required: true,
457
+ },
458
+ ],
459
+ },
460
+ {
461
+ provider: SecurityEventConnectorProvider_1.default.GoogleWorkspace,
462
+ title: "Google Workspace",
463
+ vendorName: "Google",
464
+ productName: "Google Workspace",
465
+ description: "Import sign-ins, admin changes, OAuth grants and account security events from Google Workspace's audit logs as OCSF identity events.",
466
+ category: "Identity",
467
+ icon: IconProp_1.default.BuildingOffice,
468
+ logo: ProviderLogo_1.default.GoogleWorkspace,
469
+ docsPath: "/docs/integrations/google-workspace",
470
+ defaultPollIntervalInMinutes: 5,
471
+ supportsAlertingOnlyToggle: false,
472
+ // Drawn plural with an "s": Preview audit events, Read audit events.
473
+ importedRecordName: "audit event",
474
+ /*
475
+ * Google documents its audit logs as arriving minutes to hours after
476
+ * the activity, by application: each poll re-reads the two hours
477
+ * before its cursor, and the id dedupe drops what it has.
478
+ */
479
+ cursorOverlapInMinutes: 120,
480
+ configFields: [
481
+ {
482
+ key: "adminEmail",
483
+ title: "Administrator email",
484
+ description: "A Google Workspace administrator who may read the audit logs. The service account reads them as this person, through domain-wide delegation.",
485
+ type: "text",
486
+ required: true,
487
+ placeholder: "admin@example.com",
488
+ },
489
+ {
490
+ key: exports.GOOGLE_WORKSPACE_DRIVE_KEY,
491
+ title: "Drive activity",
492
+ description: "Also import files shared outside the organization, made public or downloaded in Google Drive.",
493
+ type: "toggle",
494
+ required: false,
495
+ defaultValue: false,
496
+ isOption: true,
497
+ },
498
+ ],
499
+ secretFields: [
500
+ {
501
+ key: "serviceAccountJson",
502
+ title: "Service account JSON",
503
+ description: "A Google Cloud service-account key (JSON) whose client ID has domain-wide delegation for the admin.reports.audit.readonly scope. Encrypted at rest and never returned by the API.",
504
+ type: "json",
505
+ required: true,
506
+ placeholder: '{ "client_email": "...", "private_key": "..." }',
507
+ },
508
+ ],
509
+ },
387
510
  {
388
511
  provider: SecurityEventConnectorProvider_1.default.GoogleSecOps,
389
512
  title: "Google SecOps",
@@ -1,5 +1,7 @@
1
1
  import commonJsModule from "./SecurityEventConnectorCatalog.js";
2
2
  export const CLOSE_ALERTS_WHEN_CASE_CLOSES_KEY = commonJsModule.CLOSE_ALERTS_WHEN_CASE_CLOSES_KEY;
3
+ export const GOOGLE_WORKSPACE_DRIVE_KEY = commonJsModule.GOOGLE_WORKSPACE_DRIVE_KEY;
4
+ export const MICROSOFT_365_AUDIT_KEY = commonJsModule.MICROSOFT_365_AUDIT_KEY;
3
5
  export const SecurityEventConnectorCatalog = commonJsModule.SecurityEventConnectorCatalog;
4
6
  export const SecurityEventConnectorCategories = commonJsModule.SecurityEventConnectorCategories;
5
7
  export const getSecurityEventConnectorDefinition = commonJsModule.getSecurityEventConnectorDefinition;
@@ -6,7 +6,9 @@ declare enum SecurityEventConnectorProvider {
6
6
  ElasticSecurity = "elastic-security",
7
7
  AwsSecurityHub = "aws-security-hub",
8
8
  OktaSystemLog = "okta",
9
- GoogleSecOps = "google-secops"
9
+ GoogleSecOps = "google-secops",
10
+ MicrosoftEntraId = "microsoft-entra-id",
11
+ GoogleWorkspace = "google-workspace"
10
12
  }
11
13
  export default SecurityEventConnectorProvider;
12
14
  export declare const AllSecurityEventConnectorProviders: Array<SecurityEventConnectorProvider>;
@@ -6,7 +6,9 @@ declare enum SecurityEventConnectorProvider {
6
6
  ElasticSecurity = "elastic-security",
7
7
  AwsSecurityHub = "aws-security-hub",
8
8
  OktaSystemLog = "okta",
9
- GoogleSecOps = "google-secops"
9
+ GoogleSecOps = "google-secops",
10
+ MicrosoftEntraId = "microsoft-entra-id",
11
+ GoogleWorkspace = "google-workspace"
10
12
  }
11
13
  export default SecurityEventConnectorProvider;
12
14
  export declare const AllSecurityEventConnectorProviders: Array<SecurityEventConnectorProvider>;
@@ -24,6 +24,8 @@ var SecurityEventConnectorProvider;
24
24
  SecurityEventConnectorProvider["AwsSecurityHub"] = "aws-security-hub";
25
25
  SecurityEventConnectorProvider["OktaSystemLog"] = "okta";
26
26
  SecurityEventConnectorProvider["GoogleSecOps"] = "google-secops";
27
+ SecurityEventConnectorProvider["MicrosoftEntraId"] = "microsoft-entra-id";
28
+ SecurityEventConnectorProvider["GoogleWorkspace"] = "google-workspace";
27
29
  })(SecurityEventConnectorProvider || (SecurityEventConnectorProvider = {}));
28
30
  exports.default = SecurityEventConnectorProvider;
29
31
  exports.AllSecurityEventConnectorProviders = [
@@ -34,6 +36,8 @@ exports.AllSecurityEventConnectorProviders = [
34
36
  SecurityEventConnectorProvider.ElasticSecurity,
35
37
  SecurityEventConnectorProvider.AwsSecurityHub,
36
38
  SecurityEventConnectorProvider.OktaSystemLog,
39
+ SecurityEventConnectorProvider.MicrosoftEntraId,
40
+ SecurityEventConnectorProvider.GoogleWorkspace,
37
41
  SecurityEventConnectorProvider.GoogleSecOps,
38
42
  ];
39
43
  function isSecurityEventConnectorProvider(value) {
@@ -0,0 +1,33 @@
1
+ export declare const DATA_SECURITY_SIGNAL_VENDOR_NAME: string;
2
+ export declare const DATA_SECURITY_SIGNAL_PRODUCT_NAME: string;
3
+ export declare const DATA_SECURITY_SIGNAL_SERVICE_NAME: string;
4
+ export declare const DATA_SECURITY_STORE_CHANGE_SIGNAL: string;
5
+ export declare const DATA_SECURITY_SIGNAL_SOURCE: string;
6
+ export declare const DATA_STORE_SIGNAL_ATTRIBUTES: {
7
+ readonly entity: string;
8
+ readonly id: string;
9
+ readonly name: string;
10
+ readonly kind: string;
11
+ readonly sensitivity: string;
12
+ readonly exposure: string;
13
+ readonly protectionRemoved: string;
14
+ readonly changedAt: string;
15
+ };
16
+ export declare enum DataStoreProtection {
17
+ Encryption = "encryption",
18
+ Versioning = "versioning",
19
+ AccessLogging = "access-logging"
20
+ }
21
+ export declare const DATA_STORE_PUBLIC_ACCESS_OPERATIONS: ReadonlyArray<string>;
22
+ export declare const DATA_STORE_SNAPSHOT_SHARING_OPERATIONS: ReadonlyArray<string>;
23
+ export declare const DATA_STORE_EXPORT_OPERATIONS: ReadonlyArray<string>;
24
+ export declare const DATA_STORE_PROTECTION_OPERATIONS: Readonly<Record<string, DataStoreProtection>>;
25
+ export declare const DATA_STORE_SIGNAL_OPERATIONS: ReadonlyArray<string>;
26
+ export interface DataStoreChangeAttack {
27
+ tactics: Array<string>;
28
+ techniques: Array<string>;
29
+ }
30
+ export declare function getDataStoreChangeAttack(data: {
31
+ operation: string;
32
+ protectionRemoved?: DataStoreProtection | undefined;
33
+ }): DataStoreChangeAttack;
@@ -0,0 +1,33 @@
1
+ export declare const DATA_SECURITY_SIGNAL_VENDOR_NAME: string;
2
+ export declare const DATA_SECURITY_SIGNAL_PRODUCT_NAME: string;
3
+ export declare const DATA_SECURITY_SIGNAL_SERVICE_NAME: string;
4
+ export declare const DATA_SECURITY_STORE_CHANGE_SIGNAL: string;
5
+ export declare const DATA_SECURITY_SIGNAL_SOURCE: string;
6
+ export declare const DATA_STORE_SIGNAL_ATTRIBUTES: {
7
+ readonly entity: string;
8
+ readonly id: string;
9
+ readonly name: string;
10
+ readonly kind: string;
11
+ readonly sensitivity: string;
12
+ readonly exposure: string;
13
+ readonly protectionRemoved: string;
14
+ readonly changedAt: string;
15
+ };
16
+ export declare enum DataStoreProtection {
17
+ Encryption = "encryption",
18
+ Versioning = "versioning",
19
+ AccessLogging = "access-logging"
20
+ }
21
+ export declare const DATA_STORE_PUBLIC_ACCESS_OPERATIONS: ReadonlyArray<string>;
22
+ export declare const DATA_STORE_SNAPSHOT_SHARING_OPERATIONS: ReadonlyArray<string>;
23
+ export declare const DATA_STORE_EXPORT_OPERATIONS: ReadonlyArray<string>;
24
+ export declare const DATA_STORE_PROTECTION_OPERATIONS: Readonly<Record<string, DataStoreProtection>>;
25
+ export declare const DATA_STORE_SIGNAL_OPERATIONS: ReadonlyArray<string>;
26
+ export interface DataStoreChangeAttack {
27
+ tactics: Array<string>;
28
+ techniques: Array<string>;
29
+ }
30
+ export declare function getDataStoreChangeAttack(data: {
31
+ operation: string;
32
+ protectionRemoved?: DataStoreProtection | undefined;
33
+ }): DataStoreChangeAttack;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DATA_STORE_SIGNAL_OPERATIONS = exports.DATA_STORE_PROTECTION_OPERATIONS = exports.DATA_STORE_EXPORT_OPERATIONS = exports.DATA_STORE_SNAPSHOT_SHARING_OPERATIONS = exports.DATA_STORE_PUBLIC_ACCESS_OPERATIONS = exports.DataStoreProtection = exports.DATA_STORE_SIGNAL_ATTRIBUTES = exports.DATA_SECURITY_SIGNAL_SOURCE = exports.DATA_SECURITY_STORE_CHANGE_SIGNAL = exports.DATA_SECURITY_SIGNAL_SERVICE_NAME = exports.DATA_SECURITY_SIGNAL_PRODUCT_NAME = exports.DATA_SECURITY_SIGNAL_VENDOR_NAME = void 0;
4
+ exports.getDataStoreChangeAttack = getDataStoreChangeAttack;
5
+ const SecurityTelemetrySource_1 = require("./SecurityTelemetrySource");
6
+ /*
7
+ * DATA SECURITY'S SECURITY EVENTS: a change to a sensitive store, as
8
+ * Security Operations reads it (detection and response for data).
9
+ *
10
+ * Data Security knows which buckets and databases hold Confidential or
11
+ * Restricted data; the cloud's activity log says who changed a store's
12
+ * policy, shared its snapshot or turned its encryption off. Together they
13
+ * are a security event - "alice made the bucket of card numbers public" -
14
+ * written by Server/Utils/DataSecurity/DataSecurityChangeSignals, which the
15
+ * rule library's Data security rules read (DetectionRuleLibrary) and the
16
+ * Rule Library tells a project sends by its product (DetectionRuleDataKind).
17
+ *
18
+ * Each event carries the vendor OneUptime, the product Data Security, the
19
+ * signal under the key the other OneUptime sources use (oneuptime.signal),
20
+ * the change as the activity log recorded it (under the change event's own
21
+ * keys: oneuptime.cloud.operation, oneuptime.cloud.actor, cloud.*) and the
22
+ * store as Data Security knows it (oneuptime.data_store.*).
23
+ */
24
+ exports.DATA_SECURITY_SIGNAL_VENDOR_NAME = SecurityTelemetrySource_1.SECURITY_TELEMETRY_VENDOR_NAME;
25
+ exports.DATA_SECURITY_SIGNAL_PRODUCT_NAME = "Data Security";
26
+ // The service the events are attributed to, as "OneUptime Logs" is for logs.
27
+ exports.DATA_SECURITY_SIGNAL_SERVICE_NAME = "OneUptime Data Security";
28
+ // What oneuptime.signal says of a change to a sensitive store.
29
+ exports.DATA_SECURITY_STORE_CHANGE_SIGNAL = "data-security.store-change";
30
+ // What oneuptime.source says of every Data Security event.
31
+ exports.DATA_SECURITY_SIGNAL_SOURCE = "data-security";
32
+ exports.DATA_STORE_SIGNAL_ATTRIBUTES = {
33
+ entity: "oneuptime.data_store.entity",
34
+ id: "oneuptime.data_store.id",
35
+ name: "oneuptime.data_store.name",
36
+ kind: "oneuptime.data_store.kind",
37
+ sensitivity: "oneuptime.data_store.sensitivity",
38
+ exposure: "oneuptime.data_store.exposure",
39
+ protectionRemoved: "oneuptime.data_store.protection_removed",
40
+ changedAt: "oneuptime.change.time",
41
+ };
42
+ // A safeguard a change can take off a store.
43
+ var DataStoreProtection;
44
+ (function (DataStoreProtection) {
45
+ DataStoreProtection["Encryption"] = "encryption";
46
+ DataStoreProtection["Versioning"] = "versioning";
47
+ DataStoreProtection["AccessLogging"] = "access-logging";
48
+ })(DataStoreProtection || (exports.DataStoreProtection = DataStoreProtection = {}));
49
+ /*
50
+ * The operations each Data security rule of the library reads, by what
51
+ * they do to a store. Every one is read from the cloud's changes, beside
52
+ * the ones that make Data Security read a store again
53
+ * (DataSecurityRunner's POSTURE_CHANGING_OPERATIONS).
54
+ */
55
+ // What makes a bucket public: its policy, its ACL, its public access block.
56
+ exports.DATA_STORE_PUBLIC_ACCESS_OPERATIONS = [
57
+ "s3:PutBucketPolicy",
58
+ "s3:PutBucketAcl",
59
+ "s3:DeletePublicAccessBlock",
60
+ ];
61
+ // What hands a database's copy to another account.
62
+ exports.DATA_STORE_SNAPSHOT_SHARING_OPERATIONS = [
63
+ "rds:ModifyDBSnapshotAttribute",
64
+ "rds:ModifyDBClusterSnapshotAttribute",
65
+ "rds:CopyDBSnapshot",
66
+ ];
67
+ // What writes a database out, whole, to a bucket.
68
+ exports.DATA_STORE_EXPORT_OPERATIONS = [
69
+ "rds:StartExportTask",
70
+ ];
71
+ /*
72
+ * What can take a safeguard off: removing a bucket's encryption, and the
73
+ * calls that turn versioning or access logging on or off - which way is
74
+ * read from the store's configuration (DataSecurityChangeSignals).
75
+ */
76
+ exports.DATA_STORE_PROTECTION_OPERATIONS = {
77
+ "s3:DeleteBucketEncryption": DataStoreProtection.Encryption,
78
+ "s3:PutBucketVersioning": DataStoreProtection.Versioning,
79
+ "s3:PutBucketLogging": DataStoreProtection.AccessLogging,
80
+ };
81
+ exports.DATA_STORE_SIGNAL_OPERATIONS = [
82
+ ...exports.DATA_STORE_PUBLIC_ACCESS_OPERATIONS,
83
+ ...exports.DATA_STORE_SNAPSHOT_SHARING_OPERATIONS,
84
+ ...exports.DATA_STORE_EXPORT_OPERATIONS,
85
+ ...Object.keys(exports.DATA_STORE_PROTECTION_OPERATIONS),
86
+ ];
87
+ /*
88
+ * The MITRE ATT&CK tactics and techniques a change to a sensitive store
89
+ * stands for (Types/SecurityEvent/MitreAttack): opening a bucket is Data
90
+ * from Cloud Storage, handing a copy to another account Transfer Data to
91
+ * Cloud Account; taking encryption off Weaken Encryption, versioning
92
+ * Inhibit System Recovery, and access logging Disable or Modify Tools (what
93
+ * Impair Defenses: Disable or Modify Cloud Logs became). Any other change
94
+ * stands for nothing in particular.
95
+ */
96
+ function getDataStoreChangeAttack(data) {
97
+ if (exports.DATA_STORE_PUBLIC_ACCESS_OPERATIONS.includes(data.operation)) {
98
+ return { tactics: ["TA0009"], techniques: ["T1530"] };
99
+ }
100
+ if (exports.DATA_STORE_SNAPSHOT_SHARING_OPERATIONS.includes(data.operation) ||
101
+ exports.DATA_STORE_EXPORT_OPERATIONS.includes(data.operation)) {
102
+ return { tactics: ["TA0010"], techniques: ["T1537"] };
103
+ }
104
+ switch (data.protectionRemoved) {
105
+ case DataStoreProtection.Encryption:
106
+ return { tactics: ["TA0112"], techniques: ["T1600"] };
107
+ case DataStoreProtection.Versioning:
108
+ return { tactics: ["TA0040"], techniques: ["T1490"] };
109
+ case DataStoreProtection.AccessLogging:
110
+ return { tactics: ["TA0112"], techniques: ["T1685"] };
111
+ default:
112
+ return { tactics: [], techniques: [] };
113
+ }
114
+ }
@@ -0,0 +1,14 @@
1
+ import commonJsModule from "./DataSecuritySignal.js";
2
+ export const DATA_SECURITY_SIGNAL_PRODUCT_NAME = commonJsModule.DATA_SECURITY_SIGNAL_PRODUCT_NAME;
3
+ export const DATA_SECURITY_SIGNAL_SERVICE_NAME = commonJsModule.DATA_SECURITY_SIGNAL_SERVICE_NAME;
4
+ export const DATA_SECURITY_SIGNAL_SOURCE = commonJsModule.DATA_SECURITY_SIGNAL_SOURCE;
5
+ export const DATA_SECURITY_SIGNAL_VENDOR_NAME = commonJsModule.DATA_SECURITY_SIGNAL_VENDOR_NAME;
6
+ export const DATA_SECURITY_STORE_CHANGE_SIGNAL = commonJsModule.DATA_SECURITY_STORE_CHANGE_SIGNAL;
7
+ export const DATA_STORE_EXPORT_OPERATIONS = commonJsModule.DATA_STORE_EXPORT_OPERATIONS;
8
+ export const DATA_STORE_PROTECTION_OPERATIONS = commonJsModule.DATA_STORE_PROTECTION_OPERATIONS;
9
+ export const DATA_STORE_PUBLIC_ACCESS_OPERATIONS = commonJsModule.DATA_STORE_PUBLIC_ACCESS_OPERATIONS;
10
+ export const DATA_STORE_SIGNAL_ATTRIBUTES = commonJsModule.DATA_STORE_SIGNAL_ATTRIBUTES;
11
+ export const DATA_STORE_SIGNAL_OPERATIONS = commonJsModule.DATA_STORE_SIGNAL_OPERATIONS;
12
+ export const DATA_STORE_SNAPSHOT_SHARING_OPERATIONS = commonJsModule.DATA_STORE_SNAPSHOT_SHARING_OPERATIONS;
13
+ export const DataStoreProtection = commonJsModule.DataStoreProtection;
14
+ export const getDataStoreChangeAttack = commonJsModule.getDataStoreChangeAttack;
@@ -2,16 +2,22 @@ export declare enum DetectionRuleDataKind {
2
2
  SignIns = "sign-ins",
3
3
  AccountChanges = "account-changes",
4
4
  OktaSystemLog = "okta-system-log",
5
+ EntraId = "entra-id",
6
+ GoogleWorkspace = "google-workspace",
5
7
  ProcessEvents = "process-events",
8
+ WindowsEvents = "windows-events",
6
9
  SudoLogs = "sudo-logs",
7
10
  AwsCloudTrail = "aws-cloudtrail",
11
+ GoogleCloudAuditLogs = "google-cloud-audit-logs",
12
+ AzureActivityLog = "azure-activity-log",
8
13
  NetworkActivity = "network-activity",
9
14
  WebRequests = "web-requests",
10
15
  KubernetesAuditLogs = "kubernetes-audit-logs",
11
16
  OneUptimeTraces = "oneuptime-traces",
12
17
  NetworkFlows = "network-flows",
13
18
  OneUptimeAuditLog = "oneuptime-audit-log",
14
- SessionReplays = "session-replays"
19
+ SessionReplays = "session-replays",
20
+ DataSecurity = "data-security"
15
21
  }
16
22
  export declare const DETECTION_RULE_DATA_KINDS_IN_ORDER: ReadonlyArray<DetectionRuleDataKind>;
17
23
  export interface SecurityEventKindsSeen {
@@ -2,16 +2,22 @@ export declare enum DetectionRuleDataKind {
2
2
  SignIns = "sign-ins",
3
3
  AccountChanges = "account-changes",
4
4
  OktaSystemLog = "okta-system-log",
5
+ EntraId = "entra-id",
6
+ GoogleWorkspace = "google-workspace",
5
7
  ProcessEvents = "process-events",
8
+ WindowsEvents = "windows-events",
6
9
  SudoLogs = "sudo-logs",
7
10
  AwsCloudTrail = "aws-cloudtrail",
11
+ GoogleCloudAuditLogs = "google-cloud-audit-logs",
12
+ AzureActivityLog = "azure-activity-log",
8
13
  NetworkActivity = "network-activity",
9
14
  WebRequests = "web-requests",
10
15
  KubernetesAuditLogs = "kubernetes-audit-logs",
11
16
  OneUptimeTraces = "oneuptime-traces",
12
17
  NetworkFlows = "network-flows",
13
18
  OneUptimeAuditLog = "oneuptime-audit-log",
14
- SessionReplays = "session-replays"
19
+ SessionReplays = "session-replays",
20
+ DataSecurity = "data-security"
15
21
  }
16
22
  export declare const DETECTION_RULE_DATA_KINDS_IN_ORDER: ReadonlyArray<DetectionRuleDataKind>;
17
23
  export interface SecurityEventKindsSeen {