Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-21-2019, 10:08 PM   #1
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Rep: Reputation: Disabled
Will the 'sha256sum' show corruption if malware infected under following circumstances?

If I check the sha256sum right after download, and everything is GOOD, and, hypothetically, I leave the .img on my computer, and it gets infected with malware, and I run the same commands again, afterwards, would the sha256sum show that the .img "had changed" and that the sha256sum outputs do NOT match, therefore corruption?
Old 08-22-2019, 02:09 AM   #2
Senior Member
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,243
Blog Entries: 28

Rep: Reputation: 161Reputation: 161
are you comparing the sha256sum of the file in question against a checksum you saved offline or the one on your computer that was changed so it would match?
Old 08-22-2019, 06:47 AM   #3
Senior Member
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885
Originally Posted by hddfsck View Post
I leave the .img on my computer, and it gets infected with malware,
Normally malware will not infect the .img, it will infect what you installed OUT of it.

And anyway: a .img should only be checked against the sha256 value on the original site: a copy of the value on the local machine can be changed just as easily as changing the file(s) it(them)selve(s).
And even then you're not sure as the sha256sum program may have been changed too to show the original value.

Last edited by ehartman; 08-22-2019 at 06:50 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to use rootsh under all circumstances EricTRA Linux - Server 11 01-19-2021 02:17 PM
ReadyNAS Duo: Under what circumstances is a resync really needed? kcbrown Linux - General 1 02-25-2010 11:02 PM
Under which circumstances a child process creates another child process using fork? mitsulas Programming 3 12-08-2009 08:16 AM
I have a Compiz flicker issue under certain circumstances. in_texas_dallas Linux - Software 9 10-03-2009 05:41 PM
Fedora 8 will only boot under certain circumstances Coppersworth Linux - Newbie 1 04-10-2008 08:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration