Artisan Commands
Command Line Commands (Artisan)
CFM includes a number of custom Laravel Artisan commands to help automate and manage blocklists, phishing detection, feed ingestion, and other system behaviors.
To view available commands, use the following in your project root:
php artisan
Below is an overview of the key command groups available in CFM:
๐ agents
Command |
Description |
agents:check-notifications |
Checks the last-seen status of each agent and sends notifications (e.g., Slack) if any are down. |
๐๏ธ autodelete
Command |
Description |
autodelete:run |
Runs AutoDeleteJob to remove old records (e.g., blocklist entries, logs) based on custom rules. |
๐ซ blocklist
Command |
Description |
blocklist:fetch-geodata |
Bulk fetches GeoIP data for blocklist entries (country, ASN, etc.). |
blocklist:resolve-geodata |
Resolves GeoIP data with optional processing limits for batching. |
blocklist:resolve-ptr |
Resolves PTR (Reverse DNS) records for IPs in batches. Parallel processing supported. |
๐งน cache
Command |
Description |
cache:clear |
Clears the Laravel application cache. |
๐ฆ clamav
Command |
Description |
clamav:generate-signatures |
Generates ClamAV-compatible signature files from phishing URLs and malware file hashes (MD5, SHA1, SHA256). |
โ๏ธ config
This section may include config sync-related commands, depending on future additions.
๐ data-feeds
Command |
Description |
data-feeds:fetch |
Fetches and processes all active data feeds configured in the system. |
import:blocklist |
Imports a list of IPs into the blocklist, whitelist, or greylist. |
import:domains |
Imports domains into the blocklist or whitelist. |
import:mail-filters |
Imports email sender/domain filters from a file. |
๐ iplists
Command |
Description |
iplists:generate |
Generates whitelist.txt , greylist.txt , and blacklist.txt files from the database for CSF or DNS use. |
๐ฌ mailfromfilters
Command |
Description |
mailfromfilters:generate |
Generates mailfromfilters.cf used by the mail filtering system, based on DB entries. |
๐ง spamassassin
Command |
Description |
spamassassin:generate-rules |
Generates a SpamAssassin custom keyword rule file from the spam_keywords table. Supports strict and loose matching, Greek normalization, etc. |
These commands allow you to maintain and automate your security infrastructure directly from the console, and can be scheduled or run on-demand as needed.
ย
No Comments