
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
lulo-plugin-json-to-string
Advanced tools
lulo json-to-string is a plugin for [lulo](https://github.com/carlnordenfelt/lulo).
lulo json-to-string is a plugin for lulo.
Returns a string representation of the provided JSON structure.
$ npm install lulo-plugin-json-to-string --save
JSON: The original JSON structure. Required.TypeCast: Attempts to cast primitive types back to their original type. See more on type casting below.The resource will return a string representation of the provided JSON structure which can be accessed via "Fn::GetAtt".
{ "Fn::GetAtt: ["ResourceName", "String"] }"
Gives The JSON structure as a string
The Custom Resource Lambda requires no additional IAM Permissions.
CloudFormation has a tendency to convert all properties to strings before giving them to a CustomResource.
In a nutshell this means that:
// Input
{
"JSON": {
"anInteger": 1
}
}
// Becomes:
{
"JSON": {
"anInteger": "1"
}
}
This oftentimes becomes a problem since a lot of AWS sdk calls does not accept "1" in place of 1 for an integer value.
If you provide the TypeCast property it will attempt to cast all primitives type back to their original type.
In other words:
'1' => 1
'1.1' => 1.1
'true' => true,
'false' => false
This works recursively as well as on arrays.
Note: The type casting is very eager and will cast anything it finds that matches a given regex (see src/index.js).
There is no way to make exceptions from this.
FAQs
lulo json-to-string is a plugin for [lulo](https://github.com/carlnordenfelt/lulo).
We found that lulo-plugin-json-to-string 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.