|
156 | 156 | }, |
157 | 157 | "parameterValues": { |
158 | 158 | "accountName": "[[variables('StorageAccountName')]", |
159 | | - "accessKey": "[[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('StorageAccountName')), '2023-04-01').keys[0].value]" |
| 159 | + "accessKey": "[[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('StorageAccountName')), '2022-09-01').keys[0].value]" |
160 | 160 | } |
161 | 161 | } |
162 | 162 | }, |
|
1162 | 1162 | "variables": { |
1163 | 1163 | "MicrosoftSentinelConnectionName": "[[concat('sentinel-', parameters('PlaybookName'))]", |
1164 | 1164 | "AzureBlobConnectionName": "[[concat('azureblob-', parameters('PlaybookName'))]", |
1165 | | - "StorageAccountName": "[[parameters('StorageAccountName')]", |
1166 | | - "StorageAccountContainerName": "[[parameters('StorageAccountContainerName')]", |
1167 | 1165 | "AzureKeyVaultName": "[[parameters('KeyVaultName')]", |
1168 | 1166 | "AzureKeyVaultConnectionName": "[[concat('keyvault-', parameters('PlaybookName'))]", |
1169 | | - "BlobNameCursor": "[[if(equals(parameters('Backend'), 'Titan'), 'cursorSentinel.txt', 'cursorVerity.txt')]", |
1170 | | - "BlobNameFromDate": "[[if(equals(parameters('Backend'), 'Titan'), 'fromdateSentinel.txt', 'fromdateVerity.txt')]", |
1171 | | - "ApiURI": "[[if(equals(parameters('Backend'), 'Titan'), 'https://api.intel471.com/v1/indicators/stream', 'https://api.intel471.cloud/integrations/indicators/v1/indicators/stream')]", |
1172 | | - "UsernameSecretName": "[[if(equals(parameters('Backend'), 'Titan'), 'TitanUserNameSentinel', 'VerityUserNameSentinel')]", |
1173 | | - "ApiKeySecretName": "[[if(equals(parameters('Backend'), 'Titan'), 'TitanAPIKeySentinel', 'VerityAPIKeySentinel')]", |
1174 | | - "RequestParamFrom": "[[if(equals(parameters('Backend'), 'Titan'), 'lastUpdatedFrom', 'from')]", |
1175 | | - "RequestParamSize": "[[if(equals(parameters('Backend'), 'Titan'), 'count', 'size')]", |
1176 | | - "RequestThreatType": "[[if(equals(parameters('Backend'), 'Titan'), 'threatType', 'threat_type')]", |
1177 | | - "ResponseFieldCursor": "[[if(equals(parameters('Backend'), 'Titan'), 'cursorNext', 'cursor_next')]", |
1178 | 1167 | "connection-1": "[[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', variables('workspace-location-inline'), '/managedApis/Azuresentinel')]", |
1179 | 1168 | "_connection-1": "[[variables('connection-1')]", |
1180 | 1169 | "connection-2": "[[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', variables('workspace-location-inline'), '/managedApis/azureblob')]", |
|
1211 | 1200 | "id": "[[variables('_connection-2')]" |
1212 | 1201 | }, |
1213 | 1202 | "parameterValues": { |
1214 | | - "accountName": "[[variables('StorageAccountName')]", |
1215 | | - "accessKey": "[[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('StorageAccountName')), '2023-04-01').keys[0].value]" |
| 1203 | + "accountName": "[[parameters('StorageAccountName')]", |
| 1204 | + "accessKey": "[[listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('StorageAccountName')), '2022-09-01').keys[0].value]" |
1216 | 1205 | } |
1217 | 1206 | } |
1218 | 1207 | }, |
|
1268 | 1257 | "type": "String" |
1269 | 1258 | }, |
1270 | 1259 | "BlobNameCursor": { |
1271 | | - "defaultValue": "[[variables('BlobNameCursor')]", |
| 1260 | + "defaultValue": "[variables('blanks')]", |
1272 | 1261 | "type": "String" |
1273 | 1262 | }, |
1274 | 1263 | "BlobNameFromDate": { |
1275 | | - "defaultValue": "[[variables('BlobNameFromDate')]", |
| 1264 | + "defaultValue": "[variables('blanks')]", |
| 1265 | + "type": "String" |
| 1266 | + }, |
| 1267 | + "ApiURI": { |
| 1268 | + "defaultValue": "[variables('blanks')]", |
| 1269 | + "type": "String" |
| 1270 | + }, |
| 1271 | + "UsernameSecretName": { |
| 1272 | + "defaultValue": "[variables('blanks')]", |
| 1273 | + "type": "String" |
| 1274 | + }, |
| 1275 | + "ApiKeySecretName": { |
| 1276 | + "defaultValue": "[variables('blanks')]", |
| 1277 | + "type": "String" |
| 1278 | + }, |
| 1279 | + "RequestParamFrom": { |
| 1280 | + "defaultValue": "[variables('blanks')]", |
| 1281 | + "type": "String" |
| 1282 | + }, |
| 1283 | + "RequestParamSize": { |
| 1284 | + "defaultValue": "[variables('blanks')]", |
| 1285 | + "type": "String" |
| 1286 | + }, |
| 1287 | + "RequestThreatType": { |
| 1288 | + "defaultValue": "[variables('blanks')]", |
1276 | 1289 | "type": "String" |
1277 | 1290 | }, |
1278 | 1291 | "ResponseFieldCursor": { |
1279 | | - "defaultValue": "[[variables('ResponseFieldCursor')]", |
| 1292 | + "defaultValue": "[variables('blanks')]", |
1280 | 1293 | "type": "String" |
1281 | 1294 | }, |
1282 | 1295 | "LookBackDays": { |
|
1367 | 1380 | "HTTP": { |
1368 | 1381 | "type": "Http", |
1369 | 1382 | "inputs": { |
1370 | | - "uri": "[[variables('ApiURI')]", |
| 1383 | + "uri": "@parameters('ApiURI')", |
1371 | 1384 | "method": "GET", |
1372 | 1385 | "headers": { |
1373 | 1386 | "User-Agent": "Intel 471 - Malware Intelligence Sentinel - Azure Logic App 4.0.0" |
|
1638 | 1651 | } |
1639 | 1652 | }, |
1640 | 1653 | "method": "get", |
1641 | | - "path": "[[concat('/secrets/', variables('ApiKeySecretName'), '/value')]" |
| 1654 | + "path": "@concat('/secrets/', parameters('ApiKeySecretName'), '/value')" |
1642 | 1655 | }, |
1643 | 1656 | "runAfter": { |
1644 | 1657 | "GetUsername": [ |
|
1695 | 1708 | } |
1696 | 1709 | }, |
1697 | 1710 | "method": "get", |
1698 | | - "path": "[[concat('/secrets/', variables('UsernameSecretName'), '/value')]" |
| 1711 | + "path": "@concat('/secrets/', parameters('UsernameSecretName'), '/value')" |
1699 | 1712 | } |
1700 | 1713 | }, |
1701 | 1714 | "IfCursorBlobExists": { |
|
1869 | 1882 | "name": "payload", |
1870 | 1883 | "type": "object", |
1871 | 1884 | "value": { |
1872 | | - "[variables('RequestParamSize')]": 100, |
1873 | | - "[variables('RequestThreatType')]": "malware", |
1874 | | - "[variables('RequestParamFrom')]": "@{variables('fromDate')}" |
| 1885 | + "@{parameters('RequestParamSize')}": 100, |
| 1886 | + "@{parameters('RequestThreatType')}": "malware", |
| 1887 | + "@{parameters('RequestParamFrom')}": "@{variables('fromDate')}" |
1875 | 1888 | } |
1876 | 1889 | } |
1877 | 1890 | ] |
|
1914 | 1927 | } |
1915 | 1928 | } |
1916 | 1929 | }, |
| 1930 | + "WorkspaceID": { |
| 1931 | + "value": "[[parameters('WorkspaceID')]" |
| 1932 | + }, |
1917 | 1933 | "StorageAccountName": { |
1918 | | - "value": "[[variables('StorageAccountName')]" |
| 1934 | + "value": "[[parameters('StorageAccountName')]" |
1919 | 1935 | }, |
1920 | 1936 | "StorageAccountContainerName": { |
1921 | | - "value": "[[variables('StorageAccountContainerName')]" |
| 1937 | + "value": "[[parameters('StorageAccountContainerName')]" |
| 1938 | + }, |
| 1939 | + "BlobNameCursor": { |
| 1940 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'cursorSentinel.txt', 'cursorVerity.txt')]" |
| 1941 | + }, |
| 1942 | + "BlobNameFromDate": { |
| 1943 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'fromdateSentinel.txt', 'fromdateVerity.txt')]" |
| 1944 | + }, |
| 1945 | + "ApiURI": { |
| 1946 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'https://api.intel471.com/v1/indicators/stream', 'https://api.intel471.cloud/integrations/indicators/v1/indicators/stream')]" |
| 1947 | + }, |
| 1948 | + "UsernameSecretName": { |
| 1949 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'TitanUserNameSentinel', 'VerityUserNameSentinel')]" |
| 1950 | + }, |
| 1951 | + "ApiKeySecretName": { |
| 1952 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'TitanAPIKeySentinel', 'VerityAPIKeySentinel')]" |
| 1953 | + }, |
| 1954 | + "RequestParamFrom": { |
| 1955 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'lastUpdatedFrom', 'from')]" |
| 1956 | + }, |
| 1957 | + "RequestParamSize": { |
| 1958 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'count', 'size')]" |
| 1959 | + }, |
| 1960 | + "RequestThreatType": { |
| 1961 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'threatType', 'threat_type')]" |
| 1962 | + }, |
| 1963 | + "ResponseFieldCursor": { |
| 1964 | + "value": "[[if(equals(parameters('Backend'), 'Titan'), 'cursorNext', 'cursor_next')]" |
1922 | 1965 | }, |
1923 | 1966 | "LookBackDays": { |
1924 | 1967 | "value": "[[parameters('LookBackDays')]" |
1925 | 1968 | }, |
1926 | | - "WorkspaceID": { |
1927 | | - "value": "[[parameters('WorkspaceID')]" |
1928 | | - }, |
1929 | 1969 | "Backend": { |
1930 | 1970 | "value": "[[parameters('Backend')]" |
1931 | 1971 | } |
|
0 commit comments