Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
slacknotifpy
is a Python CLI tool that sends notifications to a specified Slack channel on job completion. This can be especially useful for tracking automated job results, such as success or failure, directly in Slack.
Install slacknotifpy
from PyPI:
pip install slacknotifpy
To use slacknotifpy
, you need to configure it with your Slack token and channel ID. These settings will be saved in a .slacknotif_config
file.
slacknotif init
You can find the Slack token and channel ID in your Slack app settings.
To update the success and failure messages for a project, use:
slacknotif config setmessages
The initialized config file can be reset using the command:
slacknotif config setconfig
and following the prompts.
After configuring slacknotifpy
, you can use it to run scripts and send notifications:
slacknotif run <script_path> [job_name]
script_path
: The path to the Python script you want to run.job_name
(optional): A name for the job, used in the Slack message. Defaults to the script filename.Example:
slacknotif run my_script.py "Data Processing Job"
A shell command can be run instead of a Python script by using the --cmd
or -c
flag:
slacknotif run -c "<SHELL COMMAND>" [job_name]
Example:
slacknotif run -c "ls -l /tmp" [job_name]
You can customize these messages using {job_name}
as a placeholder in the config.
You can also tag users using thier real or display names using {@John Doe}
or {@JohnDoe42}
slacknotif init
slacknotif config setconfig
slacknotif config setmessages
slacknotif run <script_path> [job_name]
slacknotif run -c "<SHELL COMMAND>" [job_name]
This project is licensed under the MIT License.
FAQs
A Python tool for sending Slack notifications on job completion.
We found that slacknotifpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.