Skip to content

Commit f7a39d1

Browse files
authored
Merge pull request #95 from ville87/psconsolehistory
Added parsing of PowerShell console history file
2 parents ad586a9 + f24b02a commit f7a39d1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[[ClassifierRules]]
2+
EnumerationScope = "FileEnumeration"
3+
RuleName = "KeepPSHistoryByName"
4+
MatchAction = "Relay"
5+
RelayTargets = ["KeepPsCredentials",
6+
"KeepCmdCredentials",
7+
"KeepAwsKeysInCode",
8+
"KeepInlinePrivateKey",
9+
"KeepPassOrKeyInCode", "KeepSlackTokensInCode",
10+
"KeepSqlAccountCreation",
11+
"KeepDbConnStringPw"]
12+
Description = "Files with these exact names will be searched for PowerShell related strings."
13+
MatchLocation = "FileName"
14+
WordListType = "Exact"
15+
MatchLength = 0
16+
WordList = ["ConsoleHost_history\\.txt"]
17+
Triage = "Green"

Snaffler/SnaffRules/DefaultRules/PathRules/Discard/DiscardWinSystemDirs.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ WordList = ["\\\\winsxs",
2121
"\\\\sources\\\\sxs",
2222
"\\\\localization",
2323
"\\\\AppData\\\\Local\\\\Microsoft",
24-
"\\\\AppData\\\\Roaming\\\\Microsoft",
24+
"\\\\AppData\\\\Roaming\\\\Microsoft\\\\Windows",
25+
"\\\\AppData\\\\Roaming\\\\Microsoft\\\\Teams",
2526
"\\\\wsuscontent",
2627
"\\\\Application Data\\\\Microsoft\\\\CLR Security Config",
2728
"\\\\servicing\\\\LCU"]

0 commit comments

Comments
 (0)