-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
1,653 additions
and
226 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
rule ddtrace_rules_json : override { | ||
meta: | ||
description = "appsec/rules.json" | ||
linux_multi_persist = "medium" | ||
strings: | ||
$datadog = /[Dd]atadog/ | ||
$datadog_generic = /[Dd]atadog \w{0,32}/ | ||
$datadog_test_scanner = "Datadog test scanner" | ||
condition: | ||
all of them | ||
} |
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,15 @@ | ||
rule mode_php_js : override { | ||
meta: | ||
description = "mode-php.js, mode-php_laravel_blade.js" | ||
php_executor = "high" | ||
strings: | ||
$ace_define = "ace.define" | ||
$ace_lib = "ace/lib" | ||
$ace_mode = "ace/mode" | ||
$ace_require = "ace.require" | ||
$mode_php_laravel_blade = "ace/mode/php_laravel_blade" | ||
$php_worker = "ace/mode/php_worker" | ||
$php_worker2 = "PhpWorker" | ||
condition: | ||
6 of them | ||
} |
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,10 @@ | ||
rule nvim_binary : override { | ||
meta: | ||
description = "nvim" | ||
linux_multi_persist = "medium" | ||
strings: | ||
$nvim_generic = /nvim_\w{0,32}/ | ||
$nvim_path = "/home/build/src/nvim" | ||
condition: | ||
all of them | ||
} |
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,13 @@ | ||
rule pull_scripts : override { | ||
meta: | ||
curl_chmod_relative_run_tiny = "medium" | ||
description = "pull-scripts" | ||
strings: | ||
$binary = "BINARY_NAME=\"charts-build-scripts_${OS}_${ARCH}.exe\"" | ||
$chmod = "chmod +x ./bin/charts-build-scripts" | ||
$echo1 = "echo \"Downloading charts-build-scripts version ${CHARTS_BUILD_SCRIPTS_REPO}@${CHARTS_BUILD_SCRIPT_VERSION}\"" | ||
$echo2 = "echo \"${BINARY_NAME} => ./bin/charts-build-scripts\"" | ||
$version_cmd = "./bin/charts-build-scripts --version" | ||
condition: | ||
all of them | ||
} |
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,13 @@ | ||
rule tfjs_predict_extractor_util : override { | ||
meta: | ||
description = "tfjs_predict_extractor_util.py" | ||
py_dropper_chmod = "medium" | ||
strings: | ||
$copyright_google = "# Copyright 2019 Google LLC" | ||
$subprocess_chmod = "subprocess.check_call(['chmod', '+x', path])" | ||
$tfjs_predict_extractor = "Utilities for tfjs_predict_extractor." | ||
$tfjs_url_linux = "http://storage.googleapis.com/tfjs-inference/tfjs-inference-linux" | ||
$tfjs_url_macos = "http://storage.googleapis.com/tfjs-inference/tfjs-inference-macos" | ||
condition: | ||
all of them | ||
} |
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,11 @@ | ||
rule trivy_binary : override { | ||
meta: | ||
curl_tor_chmod_relative_run = "medium" | ||
description = "trivy" | ||
strings: | ||
$aqua_security_trivy = "aquasecurity:trivy" | ||
$trivy_install = "# curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh" | ||
$trivy_repo = "github.com/aquasecurity/trivy" | ||
condition: | ||
all of them | ||
} |
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,12 @@ | ||
rule vitess : override { | ||
meta: | ||
linux_multi_persist = "medium" | ||
description = "vitess" | ||
strings: | ||
$issue = "This error should not happen and is a bug. Please file an issue on GitHub: https://github.com/vitessio/vitess/issues/new/choose" | ||
$vitess = "vitess" | ||
$vitess_io = "vitess.io" | ||
$vitess_repo = "https://github.com/vitessio" | ||
condition: | ||
all of them | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# javascript/clean/mode-php.js | ||
combo/backdoor/php | ||
combo/net/tunnel_proxy | ||
compression/bzip2 | ||
compression/gzip | ||
databases/mysql | ||
databases/sqlite | ||
encoding/base64 | ||
encoding/reverse | ||
env/USER | ||
evasion/base64/decode | ||
exec/program | ||
exec/program/background | ||
exec/shell_command | ||
fs/directory/create | ||
fs/directory/remove | ||
fs/fifo/create | ||
fs/file/delete | ||
fs/file/delete/forcibly | ||
fs/file/truncate | ||
fs/link/read | ||
fs/lock/update | ||
fs/node/create | ||
fs/permission/modify | ||
fs/symlink/resolve | ||
fs/watch | ||
hash/md5 | ||
kernel/acct | ||
kernel/hostname/get | ||
kernel/platform | ||
net/fetch | ||
net/hostname/resolve | ||
net/hostport/parse | ||
net/http/cookies | ||
net/http/form/upload | ||
net/http/post | ||
net/ip/parse | ||
net/ip/resolve | ||
net/ip/string | ||
net/socket/connect | ||
net/socket/listen | ||
net/socket/local/address | ||
net/socket/peer/address | ||
net/socket/receive | ||
net/socket/send | ||
net/upload | ||
net/url/encode | ||
process/chroot | ||
process/effective/groupid/get | ||
process/groupid/set | ||
process/parent_pid/get | ||
process/userid/set | ||
process/username/get | ||
random/insecure | ||
ref/daemon | ||
ref/ip_port | ||
ref/path/etc | ||
ref/path/hidden | ||
ref/site/url | ||
ref/words/agent | ||
ref/words/password | ||
ref/words/plugin | ||
ref/words/spoof | ||
secrets/private_key | ||
tty/pathname |
65 changes: 65 additions & 0 deletions
65
test_data/javascript/clean/mode-php_laravel_blade.js.simple
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,65 @@ | ||
# javascript/clean/mode-php_laravel_blade.js | ||
combo/backdoor/php | ||
combo/net/tunnel_proxy | ||
compression/bzip2 | ||
compression/gzip | ||
databases/mysql | ||
databases/sqlite | ||
encoding/base64 | ||
encoding/reverse | ||
env/USER | ||
evasion/base64/decode | ||
exec/program | ||
exec/program/background | ||
exec/shell_command | ||
fs/directory/create | ||
fs/directory/remove | ||
fs/fifo/create | ||
fs/file/delete | ||
fs/file/delete/forcibly | ||
fs/file/truncate | ||
fs/link/read | ||
fs/lock/update | ||
fs/node/create | ||
fs/permission/modify | ||
fs/symlink/resolve | ||
fs/watch | ||
hash/md5 | ||
kernel/acct | ||
kernel/hostname/get | ||
kernel/platform | ||
net/fetch | ||
net/hostname/resolve | ||
net/hostport/parse | ||
net/http/cookies | ||
net/http/form/upload | ||
net/http/post | ||
net/ip/parse | ||
net/ip/resolve | ||
net/ip/string | ||
net/socket/connect | ||
net/socket/listen | ||
net/socket/local/address | ||
net/socket/peer/address | ||
net/socket/receive | ||
net/socket/send | ||
net/upload | ||
net/url/encode | ||
process/chroot | ||
process/effective/groupid/get | ||
process/groupid/set | ||
process/parent_pid/get | ||
process/userid/set | ||
process/username/get | ||
random/insecure | ||
ref/daemon | ||
ref/ip_port | ||
ref/path/etc | ||
ref/path/hidden | ||
ref/site/url | ||
ref/words/agent | ||
ref/words/password | ||
ref/words/plugin | ||
ref/words/spoof | ||
secrets/private_key | ||
tty/pathname |
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
1 change: 0 additions & 1 deletion
1
...024.clobber_xmrig/cba8d79949adc3c56c02fee56644f4084b7471bc5aed1c81803054f017240a72.simple
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
Oops, something went wrong.