
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.
github.com/karel-3d/pulpmd
Code block injection for markdown files.
We use the common double-brace format for the snippet tags:
{{snippet <Snippet Name>}}
Optionally, you can add a file extension filter to the snippet tag to limit the code to (a) specific language(s). This will only insert from files named <Snippet Name>.{js,go,rs}:
{{snippet <Snippet Name> [js,go,rs]}}
Snippets are matched to the file name, with the code block tagged with the file extension.
So, if we have the snippet tag:
### Here's an example:
{{snippet SampleCode [js]}}
and code file SampleCode.js:
function SampleFunction() {
console.log("Show in markdown");
}
The resulting markdown will be:
### Here's an example:
```js
function SampleFunction() {
console.log("Show in markdown");
}
```
To inject in-place, simply run:
$ pulpMd --target=input.md
Specify an output file with:
$ pulpMd --target=input.md --output=output.md
--injectDir (-d): Root directory of snippets to inject
--norecur (-r): No recursive searches in injectDir
--output (-o): Output markdown file
--fileExt (-e): Extension list. Can be used to filter "js,go,java" or used to specify the markdown code identifier "aspx:asp".
--notags (-n): Leave snippet tags in output. [To facilitate multiple-pass processing]
--quotes (-q): Leave block quotes in output when no code was inserted in the following tag. [Default cleans up block-quote headings if there's no code to insert]
--stdin (-s): Read Stdin for the markdown file to parse.
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.
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.