Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
require 'gorillapi'
module Api
extend Gorillapi
extend self
test_api url: 'staging.domain.com'
header header_name: 'codewranglers.gorillapi',
api_key: 'ABC123',
format: 'json',
version: 1
def ping
get "/api/v1/ping"
end
def add_task
post "/api/v1/tasks", params: { task: { name: 'Test Api' } }
end
end
Api.add_task # =>
Request Details: Add Task
---------------------------------------------
Url: staging.domain.com
Request: POST
Endpoint: /api/v1/tasks
Content-Type application/json
Accept: application/vnd.codewranglers.gorillapi-v1+json
Api Token: ABC123
Params: { 'task' => { 'name' => 'Test Api' } }
cURL Request:
---------------------------------------------
curl -X POST -k -i -v -H "Content-Type: application/json" -H "Accept: application/vnd.codewranglers.gorillapi-v1+json" -H "AUTHORIZATION: ABC123" http://staging.domain.com/api/v1/tasks
Api Call Results:
---------------------------------------------
HTTP/1.1 201 Created
Server: nginx/1.4.7
Date: Wed, 23 Apr 2014 23:33:42 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 201 Created
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Vary: Accept-Encoding
ETag: "260ca9dd8a4577fc00b7bd5810298076"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: request_method=POST; path=/
X-Request-Id: 75af1009-cd70-4304-9b22-0d7e263ca161
X-Runtime: 0.026264
success
FAQs
Unknown package
We found that gorillapi demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.