
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
gulp-rev-sri
Advanced tools
A gulp-rev subresource integrity plugin
npm:
npm install gulp-rev-sri
yarn:
yarn add gulp-rev-sri
const gulp = require('gulp');
const rev = require('gulp-rev');
const revSri = require('gulp-rev-sri');
gulp.src('./myassets/**/*')
.pipe(rev())
.pipe(gulp.dest('./somedestination/'))
.pipe(rev.manifest())
.pipe(revSri({ base: 'some/build/path', manifestName: 'sri-manifest.json' }))
.pipe(gulp.dest('./somedestination/'))
.on('end', () => { ... });
// sri-manifest.json
// { <original_file>: { path: <file_with_rev_hash>, integrity: 'sha256-<hash_of_file>' } }
base
- base file path for build filesmanifestName
(default: sri-manifest.json
) - name of the manifest file being created (Warning do not use rev-manifest.json
)Warning: The original rev-manifest.json
is in the format:
{
"<file_path>": "<rev_file_path>",
"<file_path>": "<rev_file_path>"
...
}
while the new sri format couples a file path with it's integrity hash in the new format of:
{
"<file_path>": {
"path": "<rev_file_path>",
"integrity": "sha256-<hash_of_file_as_base64_encoded>"
},
"<file_path>": {
"path": "<rev_file_path>",
"integrity": "sha256-<hash_of_file_as_base64_encoded>"
},
...
}
It's recommended that you choose a different file name from rev-manifest.json
due to potential complications in merging existing files.
Name | Website |
---|---|
Shaun | https://shaunwarman.com |
FAQs
A gulp-rev subresource integrity plugin
The npm package gulp-rev-sri receives a total of 18 weekly downloads. As such, gulp-rev-sri popularity was classified as not popular.
We found that gulp-rev-sri 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.