Gathering detailed insights and metrics for monocdk-serverless-clamscan
Gathering detailed insights and metrics for monocdk-serverless-clamscan
Gathering detailed insights and metrics for monocdk-serverless-clamscan
Gathering detailed insights and metrics for monocdk-serverless-clamscan
npm install monocdk-serverless-clamscan
Typescript
Module System
Node Version
NPM Version
TypeScript (70.04%)
Python (25.87%)
JavaScript (2.39%)
Dockerfile (1.71%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
258 Stars
1,252 Commits
73 Forks
4 Watchers
3 Branches
19 Contributors
Updated on Jul 15, 2025
Latest Version
1.2.18
Package Id
monocdk-serverless-clamscan@1.2.18
Unpacked Size
339.99 kB
Size
136.31 kB
File Count
24
NPM Version
6.14.17
Node Version
14.19.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
3
22
Language | cdk-serverless-clamscan | monocdk-serverless-clamscan |
---|---|---|
Python | ||
TypeScript |
cdk-serverless-clamscan
^1.0.0cdk-serverless-clamscan
^2.0.0monocdk-serverless-clamscan
^1.0.0An aws-cdk construct that uses ClamAV® to scan objects in Amazon S3 for viruses. The construct provides a flexible interface for a system to act based on the results of a ClamAV virus scan.
Docker: The ClamAV Lambda functions utilizes a container image that is built locally using docker bundling
This project uses projen and thus all the constructs follow language specific standards and naming patterns. For more information on how to translate the following examples into your desired language read the CDK guide on Translating TypeScript AWS CDK code to other languages
1import { RuleTargetInput } from '@aws-cdk/aws-events'; 2import { SnsTopic } from '@aws-cdk/aws-events-targets'; 3import { Bucket } from '@aws-cdk/aws-s3'; 4import { Topic } from '@aws-cdk/aws-sns'; 5import { Construct, Stack, StackProps } from '@aws-cdk/core'; 6import { ServerlessClamscan } from 'cdk-serverless-clamscan'; 7 8export class CdkTestStack extends Stack { 9 constructor(scope: Construct, id: string, props?: StackProps) { 10 super(scope, id, props); 11 12 const bucket_1 = new Bucket(this, 'rBucket1'); 13 const bucket_2 = new Bucket(this, 'rBucket2'); 14 const bucketList = [bucket_1, bucket_2]; 15 const sc = new ServerlessClamscan(this, 'rClamscan', { 16 buckets: bucketList, 17 }); 18 const bucket_3 = new Bucket(this, 'rBucket3'); 19 sc.addSourceBucket(bucket_3); 20 const infectedTopic = new Topic(this, 'rInfectedTopic'); 21 sc.infectedRule?.addTarget( 22 new SnsTopic(infectedTopic, { 23 message: RuleTargetInput.fromEventPath( 24 '$.detail.responsePayload.message', 25 ), 26 }), 27 ); 28 } 29}
1from aws_cdk import ( 2 core as core, 3 aws_events as events, 4 aws_events_targets as events_targets, 5 aws_s3 as s3, 6 aws_sns as sns 7) 8from cdk_serverless_clamscan import ServerlessClamscan 9 10class CdkTestStack(core.Stack): 11 12 def __init__(self, scope: core.Construct, construct_id: str, **kwargs) -> None: 13 super().__init__(scope, construct_id, **kwargs) 14 15 bucket_1 = s3.Bucket(self, "rBucket1") 16 bucket_2 = s3.Bucket(self, "rBucket2") 17 bucketList = [ bucket_1, bucket_2 ] 18 sc = ServerlessClamscan(self, "rClamScan", 19 buckets=bucketList, 20 ) 21 bucket_3 = s3.Bucket(self, "rBucket3") 22 sc.add_source_bucket(bucket_3) 23 infected_topic = sns.Topic(self, "rInfectedTopic") 24 if sc.infected_rule != None: 25 sc.infected_rule.add_target( 26 events_targets.SnsTopic( 27 infected_topic, 28 message=events.RuleTargetInput.from_event_path('$.detail.responsePayload.message'), 29 ) 30 )
1import { 2 SqsDestination, 3 EventBridgeDestination, 4} from '@aws-cdk/aws-lambda-destinations'; 5import { Bucket } from '@aws-cdk/aws-s3'; 6import { Queue } from '@aws-cdk/aws-sqs'; 7import { Construct, Stack, StackProps } from '@aws-cdk/core'; 8import { ServerlessClamscan } from 'cdk-serverless-clamscan'; 9 10export class CdkTestStack extends Stack { 11 constructor(scope: Construct, id: string, props?: StackProps) { 12 super(scope, id, props); 13 14 const bucket_1 = new Bucket(this, 'rBucket1'); 15 const bucket_2 = new Bucket(this, 'rBucket2'); 16 const bucketList = [bucket_1, bucket_2]; 17 const queue = new Queue(this, 'rQueue'); 18 const sc = new ServerlessClamscan(this, 'default', { 19 buckets: bucketList, 20 onResult: new EventBridgeDestination(), 21 onError: new SqsDestination(queue), 22 }); 23 const bucket_3 = new Bucket(this, 'rBucket3'); 24 sc.addSourceBucket(bucket_3); 25 } 26}
1from aws_cdk import ( 2 core as core, 3 aws_lambda_destinations as lambda_destinations, 4 aws_s3 as s3, 5 aws_sqs as sqs 6) 7from cdk_serverless_clamscan import ServerlessClamscan 8 9class CdkTestStack(core.Stack): 10 11 def __init__(self, scope: core.Construct, construct_id: str, **kwargs) -> None: 12 super().__init__(scope, construct_id, **kwargs) 13 14 bucket_1 = s3.Bucket(self, "rBucket1") 15 bucket_2 = s3.Bucket(self, "rBucket2") 16 bucketList = [ bucket_1, bucket_2 ] 17 queue = sqs.Queue(self, "rQueue") 18 sc = ServerlessClamscan(self, "rClamScan", 19 buckets=bucketList, 20 on_result=lambda_destinations.EventBridgeDestination(), 21 on_error=lambda_destinations.SqsDestination(queue), 22 ) 23 bucket_3 = s3.Bucket(self, "rBucket3") 24 sc.add_source_bucket(bucket_3)
When ClamAV publishes updates to the scanner you will see “Your ClamAV installation is OUTDATED” in your scan results. While the construct creates a system to keep the database definitions up to date, you must update the scanner to detect all the latest Viruses.
Update the docker images of the Lambda functions with the latest version of ClamAV by re-running cdk deploy
.
See API.md.
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
4 existing vulnerabilities detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More