
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
github.com/nurmuh-alhakim18/url-shortener-api
This is a simple REST API for shortening URL. It allows client to shorten the given URL.
Method | Endpoint | Description |
---|---|---|
GET | /api/health | Check readiness of API |
POST | /api/shorten | Shorten the long URL provided by user |
GET | /{alias} | Redirect the shortened URL to the long URL |
Method: GET
URL: /api/health
On Success Status Code: 200
Response:
200 OK
Method: POST
URL: /api/shorten
Headers:
Content-Type
: application/json
Request Body:
string
unique
: Alias which will be used for redirection.string
: URL shortening target.On Success Status Code: 201
Request Example:
{
"custom_alias": "lol",
"original_url": "https://leagueoflegends.com"
}
Response Example:
{
"generated_link": "https://url-shortener-836536565354.asia-southeast2.run.app/lol"
}
Method: GET
URL: /{alias}
On Success Status Code: 200
Response:
200 OK
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.