LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-21-2019, 11:08 PM   #1
hddfsck
Member
 
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, 03:09 AM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905
Blog Entries: 20

Rep: Reputation: 126Reputation: 126
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, 07:47 AM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,184

Rep: Reputation: 662Reputation: 662Reputation: 662Reputation: 662Reputation: 662Reputation: 662
Quote:
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 07:50 AM.
 
  


Reply


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 9 03-31-2011 02:27 AM
ReadyNAS Duo: Under what circumstances is a resync really needed? kcbrown Linux - General 1 02-26-2010 12:02 AM
Under which circumstances a child process creates another child process using fork? mitsulas Programming 3 12-08-2009 09:16 AM
I have a Compiz flicker issue under certain circumstances. in_texas_dallas Linux - Software 9 10-03-2009 06:41 PM
Fedora 8 will only boot under certain circumstances Coppersworth Linux - Newbie 1 04-10-2008 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:10 AM.

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