# What this file is
# ---------------
# One regular expression per line, matched case-insensitively against every line
# of shipped code in this folder. A line starting with '#' is a comment.
#
# The privacy receipt prints the number of patterns AND the number of files it
# scanned, and the self test fails if either count drops below a floor. That is
# deliberate: an emptied patterns file would otherwise pass a scan that looked at
# nothing, which is the exact "check that cannot fail" this project is not
# allowed to ship.
#
# Adding a pattern is cheap. Removing one is a decision that has to be argued for
# in the receipt, because every line here is a way a program could reach the
# network.

# --- PowerShell's own web cmdlets
invoke-webrequest
invoke-restmethod

# --- the .NET clients underneath them
net\.webclient
net\.httpclient
net\.webrequest
\[system\.net
system\.net\.http
net\.sockets
net\.dns
net\.mail

# --- download-and-run primitives
downloadstring
downloadfile
uploadfile
uploaddata
start-bitstransfer
bitsadmin
certutil\s+.*-urlcache
mshta
curl(\.exe)?\s
wget

# --- remote execution
new-pssession
enter-pssession
invoke-command\s+.*-computername

# --- mail and raw endpoints
smtp
ftp://
wss?://
https?://
