Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
WARNING: this is work in progress and everything is likely to change!
http://www.audreyt.org/newdict/jekyller/_public/
The first section describes plv8x, and the later sections has some real-world examples such as:
http://www.audreyt.org/newdict/jekyller/_public/?full#pgrest-mongolab-api-server
Note: Requires postgresql 9.1 or later. 9.0 will be supported soon.
# for older distros: sudo add-apt-repository ppa:martinkl/ppa
sudo apt-get install libv8-dev
sudo easy_install pgxnclient
sudo pgxn install plv8
npm i
npm run prepublish
# replace MYDB with an database name, or run "createdb MYDB" to make a new one
./node_modules/.bin/plv8x --db tcp://localhost/MYDB --import pgrest:./package.json
./node_modules/.bin/plv8x --db tcp://localhost/MYDB --inject 'plv8x_json pgrest_select(plv8x_json)=pgrest:pgrest_select'
# then this will give you json representation of "sometable":
MYDB=$ select pgrest_select('{"collection": "sometable", "l": 10}');
The parameter is similar to MongoLab's REST API for listing documents: https://support.mongolab.com/entries/20433053-rest-api-for-mongodb
createdb test
export TESTDBUSERNAME=postgres # optional
export TESTDBNAME=test
npm i
npm run test
FAQs
enable REST in postgres
The npm package pgrest receives a total of 0 weekly downloads. As such, pgrest popularity was classified as not popular.
We found that pgrest demonstrated a not healthy version release cadence and project activity because the last version was released 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.