
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.
Flora is a FLexible Open Rest API framework for Node.js.
Flora requires Node.js v10 or higher.
/path/to/resource/<id>
?action=<action>
&select=xxx
&filter=xxx
&limit=10
&page=1
&width=100 (additional parameters)
&height=100
GET /article/123
(retrieve article 123 as JSON)GET /article/
(list of all articles)module.exports = (api) => ({
actions: {
retrieve: (request, response) => {
return api.resourceProcessor.handle(request, response)
},
hello: () => {
return Promise.resolve("Hello World");
// return "Hello World"
// Also, a Stream of Buffer can be returned
},
foo: {
default: (request, response) => {
// If "foo" was a function, only the default format was allowed.
// This way you can define additional formats:
},
image: (request, response) => {
// This is executed when /myresource/123.image?action=foo is called.
// The behaviour of each format is not dictated by the framework.
response.header('Content-Type', 'image/png');
return … // Stream or Buffer
}
}
}
});
<?xml version="1.0" encoding="utf-8"?>
<resource primaryKey="id" xmlns:flora="urn:flora:options">
<flora:dataSource type="mysql" database="contents" table="user"/>
<id type="int"/>
<firstname/>
<lastname/>
</resource>
FAQs
FLexible Open Rest API
The npm package flora receives a total of 14 weekly downloads. As such, flora popularity was classified as not popular.
We found that flora 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
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.