Giter Site home page Giter Site logo

Comments (6)

insertish avatar insertish commented on June 3, 2024 2

ClamAV client is really promising, it lets you just stream the file over the network by default.

Screenshot 2023-06-05 at 12 21 58

This would be paired with a clamd container.

from autumn.

insertish avatar insertish commented on June 3, 2024

This looks promising, auto-updating ClamAV in a Docker container: https://github.com/rordi/docker-antivirus

  • doesn't seem to be a network service?
  • alternatively, autumn could write to said directory, and poll for ok / nok results

Doesn't seem to work?

Screenshot 2023-06-05 at 11 18 43

On to the next one...

from autumn.

insertish avatar insertish commented on June 3, 2024

Next best thing is probably just using ClamAV directly, but this will have a heavy memory footprint (not sure if we have space for this).

https://hub.docker.com/r/clamav/clamav

Ok this isn't great already, would have to somehow load the container up, with signatures, and only then call ClamAV.

Screenshot 2023-06-05 at 11 26 24

It may be worth therefore to just make a separate service that pulls recently uploaded files from S3 (OR a task in the file server that does additional processing on the file after it is uploaded).

ClamAV also definitely won't detect everything, I'm fairly certain both of these files are malware but one of them comes back as "OK":

Screenshot 2023-06-05 at 11 28 49

from autumn.

insertish avatar insertish commented on June 3, 2024

Alternatively, use clamav bindings directly in Autumn:

clamav crate:
https://docs.rs/clamav/latest/clamav/engine/struct.Engine.html#method.scan_file
(this creates additional issues with linking ☚ī¸)

clamav-client (run clamd in container):
https://crates.io/crates/clamav-client

from autumn.

insertish avatar insertish commented on June 3, 2024

Forked clamav-client for dealing with buffers directly, also opened a PR to upstream my changes if they're interested, toblux/rust-clamav-client#1.

from autumn.

insertish avatar insertish commented on June 3, 2024
Screenshot 2023-06-05 at 13 28 24

from autumn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.