Revert "Initial set of Azure secrets for #539 (#1079)" (#1197)

This reverts commit 7911ac60d7.
This commit is contained in:
Zachary Rice authored and GitHub committed 2023-06-15 07:44:13 -05:00
1 parent 7911ac60d7
commit 7804d652c0
5 files changed
+1 -685

No files matched your search

-189
View File
@@ -92,15 +92,6 @@ keywords = [
"alibaba",
]
[[rules]]
description = "CSCAN0270 - Found Azure Subscription Token Cache."
id = "ansible-vault-token"
regex = '''(?i)\b(ANSIBLE_VAULT;[0-9]\.[0-9];AES256;[\r\n]+[0-9]+)(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
"ansible_vault;","aes256;",
]
[[rules]]
description = "Asana Client ID"
id = "asana-client-id"
@@ -145,186 +136,6 @@ keywords = [
"akia","agpa","aida","aroa","aipa","anpa","anva","asia",
]
[[rules]]
description = "CSCAN0020, CSCAN0030 - Found Azure app service deployment secrets in publish settings file."
id = "azure-app-service-deployment-secrets"
regex = '''(?i)\b(MII[a-z0-9=_\-]{200})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
"mii",
]
[[rules]]
description = "CSCAN0240 - Found Azure Devops personal access token in source file."
id = "azure-devops-pat"
regex = '''(?i)\b((access_token).*?['="][a-zA-Z0-9/+]{10,99}['"])(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0200 - Found Azure DevDiv TFVC repo secrets."
id = "azure-devtfvc-secrets"
regex = '''(?i)\b(enc_username=.+[\n\r\s]+enc_password=.{3,})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0160 - Found Azure domain credential in source file."
id = "azure-network-credential"
regex = '''(?i)\b(NetworkCredential\((\s*).*,(\s*).*,(\s*)(corp|europe|middleeast|northamerica|southpacific|southamerica|fareast|africa|redmond|exchange|extranet|partners|extranettest|parttest|noe|ntdev|ntwksta|sys-wingroup|windeploy|wingroup|winse|segroup|xcorp|xrep|phx|gme|usme|cdocidm|mslpa)\))(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0160 - Found Azure domain credential in source file."
id = "azure-network-credential-dotnet"
regex = '''(?i)\b(new-object\s*System.Net.NetworkCredential\(.*?,\s*['"][^"]+['"])(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0160 - Found Azure domain credential in source file."
id = "azure-network-credential-schtasks"
regex = '''(?i)\b(schtasks.*/ru\s(corp|europe|middleeast|northamerica|southpacific|southamerica|fareast|africa|redmond|exchange|extranet|partners|extranettest|parttest|noe|ntdev|ntwksta|sys\-wingroup|windeploy|wingroup|winse|segroup|xcorp|xrep|phx|gme|usme|cdocidm|mslpa).*/rp.*)(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0090 - Found Azure password, symmetric key or storage credential in source file."
id = "azure-password-addkey"
regex = '''(?i)\b([<add].*([key](s|[0-9])?|(credential)s?|(secret)(s|S|[0-9])?|[password|token|key](primary|secondary|orsas|sas|encrypted))['"]\s*value\s*=['"].*['"])(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0090 - Found Azure password, symmetric key or storage credential in source file."
id = "azure-password-connstring"
regex = '''(?i)\b((connectionstring|connstring)[^=]*?=["'][^"']*?(password)=[^\$\s;][^"'\s]*?(;|['"]))(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0090 - Found Azure password, symmetric key or storage credential in source file."
id = "azure-password-machinekey"
regex = '''(?i)\b((decryptionKey\s*\=\s*['"].*['"]|validationKey\s*\=\s*['"].*['"]))(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0090, CSCAN0150 - Found Azure password, symmetric key or storage credential in source file."
id = "azure-password-uidpw"
regex = '''(?i)\b(((user) ?(id|name)|uid)=.{2,128}?\s*?;\s*?((password|(pwd))=[^'$%@'";\[\{][^;"']{2,350}?(;|"|')))(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0090 - Found Azure password, symmetric key or storage credential in source file."
id = "azure-password-value-string"
regex = '''(?i)\b(value\s?=\s?['"]((([A-Za-z0-9+/]){4}){1,200})==['"])(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0030, CSCAN0090, CSCAN0150 - Found Azure storage credential in source code file."
id = "azure-storage-credential-43char"
regex = '''(?i)\b([a-zA-Z0-9/+]{43}=[^{@\d%])(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0030, CSCAN0090, CSCAN0150 - Found Azure storage credential in source code file."
id = "azure-storage-credential-86char"
regex = '''(?i)\b([ \t]{0,10}[a-zA-Z0-9/+]{86}==)(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0030 - Found Azure storage credential in source code file."
id = "azure-storage-credential-accountkey"
regex = '''(?i)\b(AccountKey\s*=\s*MII[a-zA-Z0-9/+]{43,}?={0,2})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0110 - Found Azure storage credential in source code file."
id = "azure-storage-credential-bloburl"
regex = '''(?i)\b((?i)https://[a-zA-Z0-9-]+.blob.core.windows.net/.*?sig=[a-zA-Z0-9%]{30,})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0130 - Found Azure storage credential in MonitoringAgent config file."
id = "azure-storage-credential-monikerkey"
regex = '''(?i)\b(Account moniker\s?=.*key\s?=.*)(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0100 - Found Azure storage credential in source code file."
id = "azure-storage-credential-servicebus"
regex = '''(?i)\b([<ServiceBusAccountInfo].*SharedAccessKey\s*=\s*[a-zA-Z0-9/+]{10,}['"])(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0030, CSCAN0090, CSCAN0150 - Found Azure storage credential in source code file."
id = "azure-storage-credential-sig53"
regex = '''(?i)\b(((sig|sas|password)=|>)[a-zA-Z0-9%]{43,53}%3d[^{a-zA-Z0-9%])(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0030 - Found Azure storage credential in source code file."
id = "azure-storage-credential-useridpw"
regex = '''(?i)\b(((user) ?(id|name)|uid)=.{2,128}?\s*?;\s*?((password)|(pwd))=[^'$%>@'";\[\{][^;"']{2,350}?(;|"|'))(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "CSCAN0100 - Found Azure storage credential in source code file."
id = "azure-storage-credential-xstore"
regex = '''(?i)\b([<XstoreAccountInfo].*accountSharedKey\s*=\s*['"].*['"])(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
]
[[rules]]
description = "Beamer API token"
id = "beamer-api-token"