Skip to main content

AEM Virus Scan

 Does AEM provide Virus Scanning for DAM assets?


Here is the solution that the Valtech Team provides. AEM Virus Scan (AVS) tool that greatly simplifies virus scans. It supports Clam AV scanner out-of-the-box and can be extended by custom scanning engines. It also provides a GUI to see the latest alerts and allows to running of manual scans.

The complete AVS package can be installed by updating pom.xml with the below dependency 

AEM 6.5

        <dependency>
            <groupId>de.valtech.avs</groupId>
            <artifactId>avs.complete</artifactId>
            <version>LATEST</version>
            <type>zip</type>
        </dependency>

AEM Cloud

        <dependency>
            <groupId>de.valtech.avs</groupId>
            <artifactId>avs.complete.cloud</artifactId>
            <version>LATEST</version>
            <type>zip</type>
        </dependency>

Older AEM Versions (<6.5/Cloud)

        <dependency>
            <groupId>de.valtech.avs</groupId>
            <artifactId>avs.ui.apps</artifactId>
            <version>LATEST</version>
            <type>zip</type>
        </dependency>

As i am working on SDK I will use the AEM cloud version in my example
after adding the dependency you can see below option in your local instance 

So how does it work ?

Scanning of uploaded data

This tool provides an POST filter that can check all the uploadeds to DAM.
Whenever some malware is detected, the upload will stop.
This means that malware will not enter AEM at all which is a big benefit compared to
scanners that check existing data

Network scan configuration




And also this tool have an manual scan in the AVS tools menu


Recommondation : You can customize the code according to your requirement

You can call AVS’ service API to scan custom data. The data is provided as input stream, no need for it to be stored in AEM. Use the AvsService to access the scan methods.

https://valtech.github.io/aem-virus-scan/de/valtech/avs/api/service/AvsService.html


!!! Happy Learning !!!









Comments

Popular posts from this blog

AEM dialog field restrictions to Group or Users

  A  Granite Render Condition  is a way of conditionally rendering a component in an AEM Touch UI dialog. User case: A set of AEM dialog fields need to be restrcited to a group of AEM users  Below is the Example for Custom Render Condition  Lets create a Sling model  import com.adobe.granite.ui.components.rendercondition.RenderCondition ; import com.adobe.granite.ui.components.rendercondition.SimpleRenderCondition ; import org.apache.jackrabbit.api.security.user.Authorizable ; import org.apache.jackrabbit.api.security.user.Group ; import org.apache.jackrabbit.api.security.user.UserManager ; import org.apache.sling.api.SlingHttpServletRequest ; import org.apache.sling.api.resource.ResourceResolver ; import org.apache.sling.models.annotations. Model ; import org.apache.sling.models.annotations.injectorspecific. Self ; import org.apache.sling.models.annotations.injectorspecific. SlingObject ; import org.slf4j.Logger ; import org.slf4j.LoggerFactory ; import j...

How to set debug points in IDE Intellij

  Below are the steps to setup debug point in intellij Open startup.bat file located in crx-quickstart\bin and locate "::* default JVM options" in the file  Find : if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true Replace : if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx 2048m -XX:MaxPermSize= 1024M -Djava.awt.headless=true -debug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address= 30303 Explanation : In the above script we are increasing the JVM_OPTS size from 1024m to 2048m, increasing MaxPermSize from 256M to 1024M, and running the debug port on the 30303 port.  Now in intellij we need to configure the debug port for core bundle  Open Run from the intellij options Open " Edit Configurations " and select " Remote JVM Debug " Configure Name , Port,  and Use Module classpath fields  and select " Apply " and then " Ok " Now after successful configurat...