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.
Python library and command line tool for removing/restoring emails in office365/Exchange using EWS API
PhishFry is a python library and command line tool for removing and restoring emails in exchange and office365. PhishFry supports shared mailboxes, group mailboxes and distribution lists. PhishFry removes/restores the entire conversation including any replies and forwards of the message.
Install with pip directly from github.
sudo pip install git+https://github.com/ace-ecosystem/phishfry.git
Add credentials for one or more exchange accounts with impersonation rights to the config.ini file.
[account1]
user=admin@example1.com
pass=123456
[account2]
user=admin@example2.com
pass=123456
# display usage information
./phishfry.py -h
# Remove message with message_id=<message_id> from the test@example.com mailbox
./phishfry.py remove test@example.com "<message_id>"
# Restores message with message_id="<message_id>" to the test@example.com mailbox
./phishfry.py restore test@example.com "<message_id>"
import phishfry
# Instantiate a phishfry account using admin email and password
account = phishfry.Account("admin@example1.com", "123456")
# remove a message
results = account.Remove("user@example1.com", "<message_id>")
# restore a message
results = account.Restore("user@example1.com", "<message_id>")
# using the results
for address in results:
# print the email address for these results
print(address)
# get the remediation result for this address
result = results[address]
# print failure message if remediation action failed
if not result.success:
print(result.message)
FAQs
Python library and command line tool for removing/restoring emails in office365/Exchange using EWS API
We found that phishfry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.