
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Recommended start here: [artofmo-examples](https://github.com/maxhudson/artofmo-examples)
Recommended start here: artofmo-examples
This package is very rough and in early stages - do not expect stability.
I'll be versioning it, so you can avoid breaking scripts that work by putting them in versioned folders with the correct version of node installed.
If you have questions, DM me on instagram @artofmo.
Currently I'm using this package by:
main.html
)drawing1.js
)npm install artofmo
)http://localhost:8887/main.html?file=drawing1
My directory ends up looking like:
mo-v0-0-5
main.html
drawing1.js
artofmo
- the node package, versioned according to parent folderassets
- images and whatnotYou don't need to separate main.html from drawing1.js, but it makes it a lot easier to create many drawings without duplicating the boilerplate html.
main.html
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script src="./artofmo/dist/index.js"></script>
<style>
body {
margin: 0;
padding: 0;
}
</style>
<script type="module">
let searchParams = new URLSearchParams(window.location.search);
let file = searchParams.get('file');
import(`./${file}.js`).then(module => {
var {run} = module.default;
run();
});
</script>
</head>
<body>
<div id="mo-container">
</div>
</body>
</html>
drawing1.js
var run = () => {
mo.colors.fetch({samples: [[58, 119, 108]], count: 5}).then(colors => {
mo.ui.init.basic({
backgroundColor: '#000',
containerId: 'mo-container',
size: mo.lib.canvasSizeFor({dpi: 300, inches: {width: 11 - 6/8, height: 17 - 6/8}, retina: true}),
overlay: false,
}).then(({rand, render, canvasView, size}) => {
var offset = {x: -size.width / 2, y: -size.height / 2};
var diameter = 12;
var rows = size.height / diameter;
var columns = size.width / diameter;
var radius = diameter / 2;
var circles = {offset, rows, columns, diameter, size: {width: diameter, height: diameter}};
_.times(circles.rows, row => {
_.times(circles.columns, column => {
var circle = {
x: _.floor(offset.x + column * diameter + radius),
y: _.floor(offset.y + row * diameter + radius),
diameter: diameter + 0.5 - diameter / 8 - rand() * diameter / 2,
color: _.sample(customColors || colors)
};
circle.radius = circle.diameter / 2;
if (circle.radius % 2 === 0) circle.radius -= 1;
circle.object = new mo.FabricCanvasObject({
origin: {x: 'center', y: 'center'},
shape: 'circle',
position: circle,
radius: circle.radius,
zIndex: 1,
stroke: circle.color,
fill: circle.color,
strokeWidth: 0
});
canvasView.add(circle);
});
});
render();
});
});
};
export default {run};
FAQs
Recommended start here: [artofmo-examples](https://github.com/maxhudson/artofmo-examples)
The npm package artofmo receives a total of 0 weekly downloads. As such, artofmo popularity was classified as not popular.
We found that artofmo 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
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.