![Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts](https://cdn.sanity.io/images/cgdhsj6q/production/961d431fdd53c410d9d320bccdf279bdf6066d4a-1024x1024.webp?w=400&fit=max&auto=format)
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.
@thetimes/methode-parser
Advanced tools
The purpose of this package is to convert data into ASTs.
This function converts arrays of elements of the form,
[
{
type: "paragraph",
data: {
attributes: {},
text:
"I love cheese. I have always loved cheese. Cheese tastes a lot better than dirty socks."
}
},
{
type: "paragraph",
data: {
attributes: {},
text: "I had a <i>dream</i> <b>today</b>"
}
},
{
type: "image",
data: {
caption: "caption",
title: "title",
credits: "credits",
display: "primary",
height: "200",
horizontalOffset: "1",
imageId: "id.jpg",
ratio: "3:2",
verticalOffset: "1",
width: "200"
}
},
...
]
into fully parsed markup elements, leaving no string unparsed.
In particular, paragraphs with rich text will be turned into markup of the form,
[
{
"name": "paragraph",
"children": [
{
"name": "text",
"attributes": {
"value": "Some ",
},
"children": []
},
{
"name": "italic",
"children": [
{
"name": "text",
"attributes": {
"value": "styled",
},
"children": []
}
]
},
{
"name": "text",
"attributes": {
"value": " text within ",
},
"children": []
},
{
"name": "bold",
"children": [
{
"attributes": {
"value": "the",
},
"children": [],
"name": "text",
}
]
},
{
"name": "text",
"attributes": {
"value": " paragraph",
},
"children": []
}
]
}
]
This function turns text containing an author name into markup elements.
Example input,
const authorSlugs = [
"john-doe",
"sponge-bob"
];
const authorDescription = "Sponge Bob, Jane Doe and John Doe";
authorToByline(authorDescription);
Example output,
[
{
"name": "author",
"attributes": {
"slug": "sponge-bob",
},
"children": [
{
"name": "text",
"attributes": {
"value": "Sponge Bob",
},
"children": [],
},
],
},
{
"name": "inline",
"children": [
{
"attributes": {
"value": ", Jane Doe and ",
},
"children": [],
"name": "text",
},
],
},
{
"name": "author",
"attributes": {
"slug": "john-doe",
},
"children": [
{
"name": "text",
"attributes": {
"value": "John Doe",
},
"children": []
}
]
}
]
FAQs
Times legacy content parser
The npm package @thetimes/methode-parser receives a total of 474 weekly downloads. As such, @thetimes/methode-parser popularity was classified as not popular.
We found that @thetimes/methode-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.