-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WireGuard PrivateKey/PresharedKey rules (#104)
- Loading branch information
Showing
7 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
crates/noseyparker/data/default/builtin/rules/wireguard.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# These rules are specifically designed to identify WireGuard .conf files, | ||
# with a focus on detecting private and preshared keys contained within them. | ||
|
||
rules: | ||
|
||
- name: WireGuard Private Key | ||
id: np.wireguard.1 | ||
|
||
pattern: PrivateKey\s*=\s*([A-Za-z0-9+/]{43}) | ||
|
||
examples: | ||
- | | ||
[Interface] | ||
Address = 10.200.200.3/32 | ||
PrivateKey = AsaFot43bfs1fEWjvtty+rGcjh3rP1H6sug1l3u19ix= | ||
DNS = 8.8.8.8 | ||
references: | ||
- https://www.wireguard.com/quickstart/ | ||
- https://manpages.debian.org/testing/wireguard-tools/wg.8.en.html | ||
- https://gist.github.com/lanceliao/5d2977f417f34dda0e3d63ac7e217fd6 | ||
|
||
- name: WireGuard Preshared Key | ||
id: np.wireguard.2 | ||
|
||
pattern: PresharedKey\s*=\s*([A-Za-z0-9+/]{43}=) | ||
|
||
examples: | ||
- | | ||
[Peer] | ||
PublicKey = [Server's public key] | ||
PresharedKey = uRsfsZ2Ts1rach4Zv3hhwcx6wa5fuIo2u3w7sa+7j81= | ||
AllowedIPs = 0.0.0.0/0, ::/0 | ||
Endpoint = [Server Addr:Server Port] | ||
references: | ||
- https://www.wireguard.com/quickstart/ | ||
- https://manpages.debian.org/testing/wireguard-tools/wg.8.en.html | ||
- https://gist.github.com/lanceliao/5d2977f417f34dda0e3d63ac7e217fd6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters