Comments (5)
Hi @anujgeek
If the paid antivirus solution provides a way to scan a file using the cli, yes.
The line you have to modify: https://github.com/widdix/aws-s3-virusscan/blob/master/template.yaml#L581
clamdscan #{fileName}
is the way to scan a file with ClamAV.
Replace clamdscan
with whatever is provided by your antivirus solution. Contract is that is returns a success exit coe if the file is clean, otherwise a non zero exit code.
from aws-s3-virusscan.
Hi @michaelwittig, thanks for replying back.
I'm looking at Bitdefender business products and they do provide a cli interface along with UI.
I'll also have to tweak the yaml file to not install ClamAV and install Bitdefender in AWS EC2 instance. I'm also hoping that the Bitdefender auto-update service should take care of updates and I won't have to worry about updating from cli.
Can you please let me know how to tweak the yaml file to not install ClamAV. Also, how can I login to that EC2 instance to install Bitdefender there. I'm on my AWS EC2 console and can't figure out how to connect to that instance:
from aws-s3-virusscan.
Hi @anujgeek You used CloudFormation to create stack? During the process you provide some parameters, one of them is called KeyName
. This is where you should enter the name of the EC2 key pair that you can then use to connect via SSH. You can update the existing stack to change the parameter!
Regarding the other question of installing Bitdefender: How is the software packaged? maybe an rpm file that you can use?
from aws-s3-virusscan.
Yes, I did use the CloudFormation to create stack. I deleted and recreated the stack after creating and associating a key pair, but I was only able to login using key 'ec2user' as username, but not the key name I provided. I used the same pem/ppk file though.
Bitdefender licensing and deployment models were complex, so I switched to using Avast. They do provide rpm packages (http://files.avast.com/lin/repo/dists/rhel/release/x86_64/) and installation instructions (http://deb.avast.com/lin/doc/techdoc.pdf Page 3). I'm new to linux, so I wasn't able to figure out how to execute these:
- Add the Avast repository to the system repositories:
# echo '[avast] name=Avast baseurl=http://rpm.avast.com/lin/repo/dists/rhel/release enabled=1 gpgcheck=1' > /etc/yum.repos.d/avast.repo
# rpm --import /path/to/avast.gpg
- Install the avast package:
# yum install avast
Can you please help me in using the avast package in yaml file or using ssh terminal?
from aws-s3-virusscan.
@anujgeek the username is always ec2-user (on Amazon Linux) and is not related to your key name.
you can add the three commands here: https://github.com/widdix/aws-s3-virusscan/blob/master/template.yaml#L688
you can find the docs here: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-init.html
from aws-s3-virusscan.
Related Issues (20)
- SQS Queues Without Server-Side Encryption HOT 2
- Bug | Ruby S3 get_object logic reversed HOT 1
- SNS topic message to SQS HOT 4
- So can this be turned into a desktop application ? HOT 1
- Failed to execute command : dpkg-query HOT 9
- Some questions to confirm. HOT 1
- EC2 instances should not have a public IP address HOT 1
- Instance Metadata Service Version 2 (IMDSv2) HOT 1
- Time trace for file scanning for vulnerability HOT 1
- Feature: Create a parameter to control key associated with kms:Decrypt action HOT 4
- Feature: Create the S3 event notification forwarding in CloudFormation template HOT 1
- cloudformation userdata fails suddenly HOT 3
- aws-s3-virusscan not processing items from ScanQueue HOT 9
- aws-partitions requires Ruby version >= 2.3 HOT 4
- Is this library affected by the log4j vulnerability? HOT 4
- New issue with missing XML library HOT 5
- Alerts if scanning is not working HOT 3
- ClamAV stopped scanning files HOT 11
- Autoscaling resource creation issue in capetown region. HOT 3
- Support for EventBridge? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-s3-virusscan.