ClamTK and Encrypted Home Directory











up vote
1
down vote

favorite












I recently encrypted my home directory and since then I have realized Clam AV is not really scanning the file in my home directory. It is scanning the encrypted files. I am running the scan with the user who's home is encrypted (using ecryptfs-migrate-home).



enter image description here



How can I recursively scan my encrypted home directory now using ClamTK or freshclam?










share|improve this question






















  • You can't scan encrypted files, you have to decrypt them, then scan them
    – Panther
    Jan 28 at 4:37










  • Agreed, but for all use other than the virus scan the contents of the home directory are automatically decrypted without me having to explicitly take any action to decrypt. Why won’t that be the case while virus scanning?
    – Yazad Khambata
    Jan 28 at 4:41










  • You are asking why clamav or any virus scanner does not have decryption as a feature ? Really ? It would be poor encryption if clamav could decrypt the data.
    – Panther
    Jan 28 at 14:54










  • No, the decryption is at the point when the user who’s home is encrypted logs in. The user doesn’t need to decrypt individual files to use. I am expecting the same from the antivirus for reading files during the scan.
    – Yazad Khambata
    Jan 28 at 14:59










  • user logs in -> files are decrypted. Then step run clamav. Exclude the encrypted files if you wish (.Private I think)
    – Panther
    Jan 28 at 15:49















up vote
1
down vote

favorite












I recently encrypted my home directory and since then I have realized Clam AV is not really scanning the file in my home directory. It is scanning the encrypted files. I am running the scan with the user who's home is encrypted (using ecryptfs-migrate-home).



enter image description here



How can I recursively scan my encrypted home directory now using ClamTK or freshclam?










share|improve this question






















  • You can't scan encrypted files, you have to decrypt them, then scan them
    – Panther
    Jan 28 at 4:37










  • Agreed, but for all use other than the virus scan the contents of the home directory are automatically decrypted without me having to explicitly take any action to decrypt. Why won’t that be the case while virus scanning?
    – Yazad Khambata
    Jan 28 at 4:41










  • You are asking why clamav or any virus scanner does not have decryption as a feature ? Really ? It would be poor encryption if clamav could decrypt the data.
    – Panther
    Jan 28 at 14:54










  • No, the decryption is at the point when the user who’s home is encrypted logs in. The user doesn’t need to decrypt individual files to use. I am expecting the same from the antivirus for reading files during the scan.
    – Yazad Khambata
    Jan 28 at 14:59










  • user logs in -> files are decrypted. Then step run clamav. Exclude the encrypted files if you wish (.Private I think)
    – Panther
    Jan 28 at 15:49













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I recently encrypted my home directory and since then I have realized Clam AV is not really scanning the file in my home directory. It is scanning the encrypted files. I am running the scan with the user who's home is encrypted (using ecryptfs-migrate-home).



enter image description here



How can I recursively scan my encrypted home directory now using ClamTK or freshclam?










share|improve this question













I recently encrypted my home directory and since then I have realized Clam AV is not really scanning the file in my home directory. It is scanning the encrypted files. I am running the scan with the user who's home is encrypted (using ecryptfs-migrate-home).



enter image description here



How can I recursively scan my encrypted home directory now using ClamTK or freshclam?







ecryptfs clamav clamtk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 28 at 4:13









Yazad Khambata

1063




1063












  • You can't scan encrypted files, you have to decrypt them, then scan them
    – Panther
    Jan 28 at 4:37










  • Agreed, but for all use other than the virus scan the contents of the home directory are automatically decrypted without me having to explicitly take any action to decrypt. Why won’t that be the case while virus scanning?
    – Yazad Khambata
    Jan 28 at 4:41










  • You are asking why clamav or any virus scanner does not have decryption as a feature ? Really ? It would be poor encryption if clamav could decrypt the data.
    – Panther
    Jan 28 at 14:54










  • No, the decryption is at the point when the user who’s home is encrypted logs in. The user doesn’t need to decrypt individual files to use. I am expecting the same from the antivirus for reading files during the scan.
    – Yazad Khambata
    Jan 28 at 14:59










  • user logs in -> files are decrypted. Then step run clamav. Exclude the encrypted files if you wish (.Private I think)
    – Panther
    Jan 28 at 15:49


















  • You can't scan encrypted files, you have to decrypt them, then scan them
    – Panther
    Jan 28 at 4:37










  • Agreed, but for all use other than the virus scan the contents of the home directory are automatically decrypted without me having to explicitly take any action to decrypt. Why won’t that be the case while virus scanning?
    – Yazad Khambata
    Jan 28 at 4:41










  • You are asking why clamav or any virus scanner does not have decryption as a feature ? Really ? It would be poor encryption if clamav could decrypt the data.
    – Panther
    Jan 28 at 14:54










  • No, the decryption is at the point when the user who’s home is encrypted logs in. The user doesn’t need to decrypt individual files to use. I am expecting the same from the antivirus for reading files during the scan.
    – Yazad Khambata
    Jan 28 at 14:59










  • user logs in -> files are decrypted. Then step run clamav. Exclude the encrypted files if you wish (.Private I think)
    – Panther
    Jan 28 at 15:49
















You can't scan encrypted files, you have to decrypt them, then scan them
– Panther
Jan 28 at 4:37




You can't scan encrypted files, you have to decrypt them, then scan them
– Panther
Jan 28 at 4:37












Agreed, but for all use other than the virus scan the contents of the home directory are automatically decrypted without me having to explicitly take any action to decrypt. Why won’t that be the case while virus scanning?
– Yazad Khambata
Jan 28 at 4:41




Agreed, but for all use other than the virus scan the contents of the home directory are automatically decrypted without me having to explicitly take any action to decrypt. Why won’t that be the case while virus scanning?
– Yazad Khambata
Jan 28 at 4:41












You are asking why clamav or any virus scanner does not have decryption as a feature ? Really ? It would be poor encryption if clamav could decrypt the data.
– Panther
Jan 28 at 14:54




You are asking why clamav or any virus scanner does not have decryption as a feature ? Really ? It would be poor encryption if clamav could decrypt the data.
– Panther
Jan 28 at 14:54












No, the decryption is at the point when the user who’s home is encrypted logs in. The user doesn’t need to decrypt individual files to use. I am expecting the same from the antivirus for reading files during the scan.
– Yazad Khambata
Jan 28 at 14:59




No, the decryption is at the point when the user who’s home is encrypted logs in. The user doesn’t need to decrypt individual files to use. I am expecting the same from the antivirus for reading files during the scan.
– Yazad Khambata
Jan 28 at 14:59












user logs in -> files are decrypted. Then step run clamav. Exclude the encrypted files if you wish (.Private I think)
– Panther
Jan 28 at 15:49




user logs in -> files are decrypted. Then step run clamav. Exclude the encrypted files if you wish (.Private I think)
– Panther
Jan 28 at 15:49










1 Answer
1






active

oldest

votes

















up vote
0
down vote













The point is that when setup as a cron job to run at 2AM, as daily scans should be, the application needs the smarts to decrypt a home folder. Many users now encrypt the home folder or the whole disk. From the login, scanning just ~/.mozilla, ~/.thunderbird, and ~/Downloads (4.1GB) took significant time, maybe an hour, running about 50% CPU on a dual core machine and Ubuntu 18.04. That is not an efficient use of resources when you are logged in trying to get other tasks accomplished.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000577%2fclamtk-and-encrypted-home-directory%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    The point is that when setup as a cron job to run at 2AM, as daily scans should be, the application needs the smarts to decrypt a home folder. Many users now encrypt the home folder or the whole disk. From the login, scanning just ~/.mozilla, ~/.thunderbird, and ~/Downloads (4.1GB) took significant time, maybe an hour, running about 50% CPU on a dual core machine and Ubuntu 18.04. That is not an efficient use of resources when you are logged in trying to get other tasks accomplished.






    share|improve this answer

























      up vote
      0
      down vote













      The point is that when setup as a cron job to run at 2AM, as daily scans should be, the application needs the smarts to decrypt a home folder. Many users now encrypt the home folder or the whole disk. From the login, scanning just ~/.mozilla, ~/.thunderbird, and ~/Downloads (4.1GB) took significant time, maybe an hour, running about 50% CPU on a dual core machine and Ubuntu 18.04. That is not an efficient use of resources when you are logged in trying to get other tasks accomplished.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        The point is that when setup as a cron job to run at 2AM, as daily scans should be, the application needs the smarts to decrypt a home folder. Many users now encrypt the home folder or the whole disk. From the login, scanning just ~/.mozilla, ~/.thunderbird, and ~/Downloads (4.1GB) took significant time, maybe an hour, running about 50% CPU on a dual core machine and Ubuntu 18.04. That is not an efficient use of resources when you are logged in trying to get other tasks accomplished.






        share|improve this answer












        The point is that when setup as a cron job to run at 2AM, as daily scans should be, the application needs the smarts to decrypt a home folder. Many users now encrypt the home folder or the whole disk. From the login, scanning just ~/.mozilla, ~/.thunderbird, and ~/Downloads (4.1GB) took significant time, maybe an hour, running about 50% CPU on a dual core machine and Ubuntu 18.04. That is not an efficient use of resources when you are logged in trying to get other tasks accomplished.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 28 at 5:34









        Catwhisperer

        10115




        10115






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000577%2fclamtk-and-encrypted-home-directory%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕