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.
github.com/sslhound/postmark
A Golang package for the using Postmark API.
go get -u github.com/keighl/postmark
Grab your Server Token
, and your Account Token
.
import (
"github.com/keighl/postmark"
)
client := postmark.NewClient("[SERVER-TOKEN]", "[ACCOUNT-TOKEN]")
email := postmark.Email{
From: "no-reply@example.com",
To: "tito@example.com",
Subject: "Reset your password",
HtmlBody: "...",
TextBody: "...",
Tag: "pw-reset",
TrackOpens: true,
}
_, err = client.SendEmail(email)
if err != nil {
panic(err)
}
Swap out HTTPClient for use on Google App Engine:
import (
"github.com/keighl/postmark"
"google.golang.org/appengine"
"google.golang.org/appengine/urlfetch"
)
// ....
client := postmark.NewClient("[SERVER-TOKEN]", "[ACCOUNT-TOKEN]")
ctx := appengine.NewContext(req)
client.HTTPClient = urlfetch.Client(ctx)
// ...
POST /email
POST /email/batch
POST /email/withTemplate
POST /email/batchWithTemplates
GET /deliverystats
GET /bounces
GET /bounces/:id
GET /bounces/:id/dump
PUT /bounces/:id/activate
GET /bounces/tags
GET /templates
POST /templates
GET /templates/:id
PUT /templates/:id
DELETE /templates/:id
POST /templates/validate
GET /servers/:id
PUT /servers/:id
GET /messages/outbound
GET /messages/outbound/:id/details
GET /messages/outbound/:id/dump
GET /messages/outbound/opens
GET /messages/outbound/opens/:id
GET /messages/inbound
GET /messages/inbound/:id/details
PUT /messages/inbound/:id/bypass
PUT /messages/inbound/:id/retry
GET /senders
GET /stats/outbound
GET /stats/outbound/sends
GET /stats/outbound/bounces
GET /stats/outbound/spam
GET /stats/outbound/tracked
GET /stats/outbound/opens
GET /stats/outbound/platform
FAQs
Unknown package
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.