Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

Settings

Every key of config.yml, with its default.

On this page

All settings are in config.yml, in the folder of index.js. Restart the scanner after you change it. The defaults below are the values in the config.yml that comes with the scanner.

Panel#

Key Default What it does
pterodactyl.url https://panel.builtbyotte.com The URL of your panel. Required, so replace it.
pterodactyl.apiKey ptla_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx The Application API key. Required.
pterodactyl.serverListEndpoint /api/application/servers The API path that lists servers. Leave it as is.

Requests to the panel time out after 10 seconds.

Servers#

Key Default What it does
wings.basePath /var/lib/pterodactyl/volumes The folder on the node that holds the server folders. Required.
wings.serverPathPattern %s The folder name inside basePath. %s is replaced by the server UUID.
wings.scanMode all all scans every server. whitelist only scans the UUIDs in whitelistedServers. blacklist scans every server except the UUIDs in blacklistedServers.
wings.whitelistedServers [] Server UUIDs to scan in whitelist mode.
wings.blacklistedServers [] Server UUIDs to skip in blacklist mode.

Use the full UUID of a server, as shown in the admin area of the panel.

Scanning#

Key Default What it does
scanning.includePatterns Scripts (.sh, .bash, .bat, .cmd, .ps1), web files (.php, .py, .pl, .cgi, .jsp, .asp, .aspx), configs (.conf, .config, .cfg, .ini, .yml, .yaml) and .txt Glob patterns of the files to read, each starting with **/. Only matching files are scanned.
scanning.excludePatterns See below Glob patterns that are never scanned.
scanning.pluginWhitelist.enabled true Turns the plugin whitelist on or off.
scanning.pluginWhitelist.plugins Dynmap The plugins to whitelist. See below.
scanning.maxFileSize 10485760 The largest file to read, in bytes (10 MB). Larger files are skipped.
scanning.scanInterval 3600000 Milliseconds between scans (one hour). 0 scans once and exits.
scanning.maxConcurrentScans 50 How many files of a server are read at the same time. Lower it on a busy node.

The default Exclude patterns skip:

  • Folders: node_modules, cache, temp, tmp, .git, logs, backups, dist, build, .next, out, libraries, versions, pool.d, php.d, conf.d.
  • Files: *.backup, package-lock.json, yarn.lock, *.min.js, *.bundle.js, hashed build files such as main-aAxrhDOw.js, plugin JARs, *.class, php.ini, php-fpm.conf, and the Minecraft configs paper-world-defaults.yml, paper-global.yml, spigot.yml, bukkit.yml, config.yml and essentials/config.yml.

Because every file called config.yml is excluded by default, plugin configs with that name are not scanned. Remove '**/config.yml' from the list if you want them scanned. Patterns are matched against the path inside the server folder.

Plugin whitelist#

Each entry has a name, a list of paths (globs) and a description. A file is whitelisted when its full path matches any of the paths. * matches anything except /, ** matches anything including /, and the match is not anchored and ignores case. See What it detects for what whitelisting changes.

Checks#

Each check under malware has these keys.

Key Default What it does
enabled true Turns the check on or off.
severity See the table critical, high, medium or low.
patterns See What it detects Regular expressions, tested on each line.
Check Default severity
backdoors, webshells, reverseshells, cryptominers critical
obfuscation, fileoperations, database, network, containertools high

In YAML, a regular expression in single quotes is used as written. In double quotes, write a backslash twice.

Key Default What it does
keywords.critical, keywords.high, keywords.medium, keywords.low See What it detects Keywords per severity. Each is a regular expression.
hashes.enabled true Turns the hash check on or off.
hashes.md5 [] MD5 hashes of known bad files.
hashes.sha256 [] SHA256 hashes of known bad files.

Discord#

Key Default What it does
discord.enabled false Turns Discord messages on or off.
discord.webhookUrl Empty The webhook URL.
discord.username Security Scanner The name shown on the message.
discord.avatarUrl https://builtbyotte.com/storage/logo.webp The picture shown on the message.
discord.notifyOnCleanScan false Also post when nothing is found.
discord.severityThreshold all all, low, medium, high or critical.
discord.mentionOnCritical false Ping one role on critical findings.
discord.mentionRoleId Empty The role ID for mentionOnCritical.
discord.includeDetails true Add the per-severity detail embeds.
discord.maxFindingsPerMessage 10 The most findings listed in the detail embeds.
discord.colors.critical 15158332 Embed colour (decimal), red.
discord.colors.high 15105570 Orange.
discord.colors.medium 16776960 Yellow.
discord.colors.low 3447003 Blue.
discord.colors.clean 3066993 Green.
footer.text BuiltByOtte ┃ Security Scanner System The footer text of the summary embed.
footer.iconUrl https://builtbyotte.com/assets/logo.png The footer icon.

Role notifications#

Key Default What it does
roleNotifications.enabled false Ping a role per severity instead of mentionOnCritical.
roleNotifications.mentionRoles.critical ['<@&ROLE_ID_HERE>'] Role mentions for critical findings. Replace the placeholder.
roleNotifications.mentionRoles.high ['<@&ROLE_ID_HERE>'] For high findings.
roleNotifications.mentionRoles.medium [] For medium findings.
roleNotifications.mentionRoles.low [] For low findings.
roleNotifications.mentionMessages.critical **CRITICAL THREAT DETECTED**! Security team immediate attention required! with a siren emoji in front The text after the mention.
roleNotifications.mentionMessages.high **HIGH SEVERITY THREAT**! Security team review recommended. with a warning emoji in front
roleNotifications.mentionMessages.medium **Medium severity threat** detected for review. with a magnifier emoji in front
roleNotifications.mentionMessages.low **Low severity threat** noted for monitoring. with an info emoji in front
roleNotifications.notifyOnFirstDetection true Announce a severity once per server.
roleNotifications.cooldownMinutes 30 Minutes between announcements when notifyOnFirstDetection is false.

Actions#

Key Default What it does
actions.quarantine.enabled false Copy or move flagged files to the quarantine folder.
actions.quarantine.onSeverity critical The lowest severity that triggers it.
actions.quarantine.quarantinePath /var/lib/pterodactyl/quarantine The quarantine folder. Keep it outside the server folders.
actions.quarantine.keepOriginal true true copies the file, false moves it out of the server.
actions.suspendServer.enabled false Suspend servers with flagged files.
actions.suspendServer.onSeverity critical The lowest severity that triggers it.
actions.autoDelete.enabled false Delete flagged files.
actions.autoDelete.onSeverity critical The lowest severity that triggers it.

Actions only use pattern and hash findings, never keyword findings.

See Notifications and actions.

Logging and reports#

Key Default What it does
logging.level info error, warn, info or debug. The start banner always shows.
logging.logToFile true Also write the log to a file.
logging.logFile ./scanner.log The log file.
logging.maxLogSize 10485760 When the log is larger than this many bytes (10 MB), it is renamed to scanner.log.<timestamp> and a new one starts. Old logs are not deleted.
reporting.jsonReport true Write a JSON report after each scan.
reporting.jsonReportPath ./security-report.json Where the report goes. It is overwritten each scan.
reporting.keepHistory true Keep a copy of every report in the history folder.
reporting.historyPath ./scan-history The history folder. Each report is saved as scan-<time>.json.
reporting.maxHistoryFiles 30 The most reports kept. The oldest are deleted.
state.path ./scanner-state.json Not in the default file. Optional key for the state file.

Relative paths such as ./scanner.log are relative to the folder you start the scanner from.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.