Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@almamedia-open-source/cdk-openapix
Advanced tools
![experimental](https://img.shields.io/badge/stability-experimental-yellow "Stability: Experimental")
🚧 Work-in-Progress
🚨 Do not use this: Things may break at any given time & this project may be destroyed at any given time!
npm i -D @almamedia-open-source/cdk-openapix
const fn = new lambda.Function(this, "fn", {
handler: "index.handler",
runtime: lambda.Runtime.NODEJS_14_X,
code: lambda.Code.fromInline('export function handler() { return { statusCode: 200, body: JSON.stringify("hello")} }'),
});
const pkName = 'item';
const table = new dynamodb.Table(this, 'table', {
partitionKey: {
type: dynamodb.AttributeType.STRING,
name: pkName,
}
});
const role = new iam.Role(this, "role", {
assumedBy: new iam.ServicePrincipal('apigateway.amazonaws.com'),
});
table.grantReadData(role);
const apiDefinition = new OpenApiXDefinition(this, {
upload: false, // by default add as inline Body, set to true to use as BodyS3Location
source: './schema.yaml',
integrations: {
// Mock Integration
'/mock': { 'GET': new OpenApiXMock(this) },
// AWS Lambda Proxy integration
'/message': { 'GET': new OpenApiXLambda(this, fn) },
// HTTP Proxy integration
'/ext': { 'GET': new OpenApiXHttp(this, "https://example.com") },
// Direct integration to AWS Service
'/item': { 'GET': new OpenApiXService(this, {
service: 'dynamodb',
action: 'GetItem',
options: {
credentialsRole: role,
requestTemplates: {
'application/json': JSON.stringify({
"TableName": table.tableName,
"Key": {
[pkName]: {
"S": "$input.params('item')"
}
}
}),
},
},
}),
},
},
injectPaths: { "info.title": "FancyPantsAPI" },
rejectPaths: ['info.version'],
// TODO add validators...
})
new apigateway.SpecRestApi(this, 'api', {
apiDefinition,
});
// Also supports new OpenApiX()
FAQs
![experimental](https://img.shields.io/badge/stability-experimental-yellow "Stability: Experimental")
The npm package @almamedia-open-source/cdk-openapix receives a total of 6 weekly downloads. As such, @almamedia-open-source/cdk-openapix popularity was classified as not popular.
We found that @almamedia-open-source/cdk-openapix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.