LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10: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, 02:09 AM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
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
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
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 06:50 AM.
 
  


Reply



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

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

All times are GMT -5. The time now is 05:51 PM.

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
Open Source Consulting | Domain Registration