Skip to content

Automating Checkpoint HEC Block-List Management with Python

License

Notifications You must be signed in to change notification settings

nihilp/Checkpoint_HEC_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Checkpoint_HEC_API

A script for Harmony Email & Collaboration which utilizes the API to add or remove emails from the block-list, or quarantine them from user's mailboxes.

Usage

  • "-e", "--email_pattern", help="Email pattern to match (will be added as contains, not exact)"
  • "-a", "--action", choices=["phishing", "spam", "greymail"], help="Action needed - What to classify email as"
  • "-q", "--quarantine", choices=["true", "false"], default=None, help="Set 'quarantineAll' flag (true or false) -> Will quarantine emails from 7 days ago"
  • "-d", "--delete", metavar="EMAIL", help="Delete an email from the blocklist by providing the email address"

Examples

Add email to blocklist & quarantine email

py HEC_Blocklist_API.py -a spam -e [email protected] -q true

Remove email entry from blocklist

py HEC_Blocklist_API.py -d [email protected]

API Documentation

https://sc1.checkpoint.com/documents/Harmony_Email_and_Collaboration_API_Reference/CP_Harmony_Email_Collaboration_API_Reference_Guide.pdf

About

Automating Checkpoint HEC Block-List Management with Python

Topics

Resources

License

Stars

Watchers

Forks

Languages