Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #410246 > unrolled thread

ransomware

Started byJohn Larkin <jjlarkin@highlandtechnology.com>
First post2016-05-02 10:47 -0700
Last post2016-05-02 23:36 -0500
Articles 15 — 11 participants

Back to article view | Back to sci.electronics.design


Contents

  ransomware John Larkin <jjlarkin@highlandtechnology.com> - 2016-05-02 10:47 -0700
    Re: ransomware Tim Wescott <seemywebsite@myfooter.really> - 2016-05-02 13:18 -0500
    Re: ransomware Don Y <blockedofcourse@foo.invalid> - 2016-05-02 11:25 -0700
    Re: ransomware dplatt@coop.radagast.org (Dave Platt) - 2016-05-02 11:59 -0700
      Re: ransomware Don Y <blockedofcourse@foo.invalid> - 2016-05-02 12:20 -0700
    Re: ransomware Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-05-02 16:29 -0400
    Re: ransomware Martin Riddle <martin_ridd@verizon.net> - 2016-05-02 16:36 -0400
    Re: ransomware OG <OG@NoSpam.com> - 2016-05-02 15:54 -0700
      Re: ransomware Don Y <blockedofcourse@foo.invalid> - 2016-05-02 21:59 -0700
        Re: ransomware OG <OG@NOWHERE.COM> - 2016-05-02 23:08 -0700
          Re: ransomware Don Y <blockedofcourse@foo.invalid> - 2016-05-03 00:34 -0700
      Re: ransomware Neon John <no@never.com> - 2016-05-03 16:09 -0400
        Re: ransomware Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-05-03 13:29 -0700
        Re: ransomware Don Y <blockedofcourse@foo.invalid> - 2016-05-03 17:31 -0700
    Re: ransomware Les Cargill <lcargill99@comcast.com> - 2016-05-02 23:36 -0500

#410246 — ransomware

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-05-02 10:47 -0700
Subjectransomware
Message-ID<v54fibhbh1v5qpu4odnp35v0pb4lbfcfur@4ax.com>
Getting ransomed sounds awful to me. Maybe somebody can answer these
questions:

If we have a bunch of servers on an internal natwork, presumably they
could all be encrypted by bad guys.

If an infected PC does not have write access to a server, can it
encrypt files on it? I think not.

If a PC is on the network but is not configured to share its files,
can its files be encrypted from the infected PC? Again, I think not.
If not, we could have one PC that does frequent backups by reading the
files on the servers, but is itself immune to being ransomed.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [next] | [standalone]


#410252

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-05-02 13:18 -0500
Message-ID<ub2dnSj3Fb57BLrKnZ2dnUU7-LudnZ2d@giganews.com>
In reply to#410246
On Mon, 02 May 2016 10:47:05 -0700, John Larkin wrote:

> Getting ransomed sounds awful to me. Maybe somebody can answer these
> questions:
> 
> If we have a bunch of servers on an internal natwork, presumably they
> could all be encrypted by bad guys.
> 
> If an infected PC does not have write access to a server, can it encrypt
> files on it? I think not.
> 
> If a PC is on the network but is not configured to share its files, can
> its files be encrypted from the infected PC? Again, I think not. If not,
> we could have one PC that does frequent backups by reading the files on
> the servers, but is itself immune to being ransomed.

Assuming that the ransomware isn't good enough to break into the write-
protected PC's, yes, that'll probably work.  If they're smart they'll 
install the ransomware, have it decrypt files "under the hood" for a 
month or so (so you don't notice anything wrong), and then hit you with 
the ransom.

So something that both backs up your network often _and_ checks (somehow) 
that the files haven't been encrypted, would probably help.

Googling "ransomware counter-measures" will probably get more profound, 
cost-effective, and just plain effective ideas than anything we could 
cook up between us.

-- 

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

[toc] | [prev] | [next] | [standalone]


#410256

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-02 11:25 -0700
Message-ID<ng85sn$ilq$1@dont-email.me>
In reply to#410246
On 5/2/2016 10:47 AM, John Larkin wrote:
>
> Getting ransomed sounds awful to me. Maybe somebody can answer these
> questions:
>
> If we have a bunch of servers on an internal natwork, presumably they
> could all be encrypted by bad guys.
>
> If an infected PC does not have write access to a server, can it
> encrypt files on it? I think not.

You speak of "write access" as if the only thing a "server" can do
is export file/printer shares.

A server can provide many services -- without exporting files/printers.
Malware can target those services to exploit bugs in those services
and gain a beachhead on the server.  Once there, it can do whatever the
leveraged exploit allows it.

There is also the potential attack vector of files "carried" onto the
machine and "examined" while there.  E.g., copy an infected *PDF* onto
the machine and "read" it (e.g., using a legitimate copy of Adobe) *on*
the machine (the PDF deploys its payload and has worked around any
defenses you may have had in place -- i.e., even if NOT connected to
the network; you've hand-carried the payload as the network would have)

> If a PC is on the network but is not configured to share its files,
> can its files be encrypted from the infected PC? Again, I think not.

See above.  Do you know which ports are open on all of your PC's?
(servers and non-servers, alike)  Do any of them ever have files
"introduced" to them by other means (e.g., sneakernet, email attachments,
etc.) and "examined" thereon?

> If not, we could have one PC that does frequent backups by reading the
> files on the servers, but is itself immune to being ransomed.

To "read" the files, the servers need to export those shares.  The
"client" has to be able to see them and the machine (netbios services).
Any means by which they can communicate is a POTENTIAL attack vector.
And, the more exposed to the outside world they are, the more vulnerable
to (e.g.) zero-day exploits -- things your AV hasn't yet figured out how
to protect against.

I have two archival layers:  my live repository and my archive.

The archive is my "vault".  All it does is know how to read and write
files.  No "applications" installed on it -- so, no bugs in those
applications that can be exploited by malicious payloads.  It exports
no services -- so you can't talk to it remotely, at your leisure,
and indefinitely!  It's "cold" 99+% of the time -- I fire it up when
I need to copy something off of it (or add something new) then shut
it down.  Think of it as checking out (copying) things from a library;
you take them out for the duration that you will need them.  If you
are only *referencing* them, then you can discard them when done (no
need to "update" the archive with something that hasn't been CHANGED!).
E.g., when creating a multimedia presentation, I may "check out" various
LARGE audio and video "libraries" (hundreds of gigabytes that I may not
want cluttering up a workstation when not needed) to assemble my
presentation; then DISCARD those copies when the presentation is complete.
Sort of like feeding optical media into a machine for the duration
that you'll need it.

I store hashes of all of the files in a database.  This allows the contents
of the archive to be routinely checked to ensure they are intact.  I.e.,
a process "walks" through the mounted filesystem (individual volumes can
be offline unless needed) and computes the current hash of each file and
compares it to the stored (location, filename, hash) to reassure me that
the file's contents are:  accessible and not altered.  If a discrepancy is
found, that database lets me find an alternate copy of the file so it can
be restored.

[What good is an archive if you don't KNOW that it is intact?]

My repository is the live version of the archive.  Things that I am working
on reside here and see frequent updates.  But, again, it just "reads and
writes files", no applications (other than the application that implements
the repository's functionality itself).  This minimizes the attack surface.

And, access to its contents are through the repository application.
I can't just access any old "file" like a regular exported file share.
Instead, I have to ask the repository application for the file, present
credentials indicating my authority to access/update it and wait for
it to deliver the file to me.

The "precious" portions of the archive are stored redundantly -- and on
different types of media.  So, I can rebuild it (painfully) if a total
catastrophic failure (house burns down).

The only place "windows" comes into play is on some of the workstations.
And, none of this stuff ever talks to the outside world (it's physically
impossible to do so).

It's a bit inconvenient.  But, fits my workstyle quite well (there aren't
multiple copies of me trying to share files with each other!)

[toc] | [prev] | [next] | [standalone]


#410262

Fromdplatt@coop.radagast.org (Dave Platt)
Date2016-05-02 11:59 -0700
Message-ID<4lkkvc-se8.ln1@coop.radagast.org>
In reply to#410246
In article <v54fibhbh1v5qpu4odnp35v0pb4lbfcfur@4ax.com>,
John Larkin  <jjlarkin@highlandtechnology.com> wrote:

>Getting ransomed sounds awful to me. Maybe somebody can answer these
>questions:
>
>If we have a bunch of servers on an internal natwork, presumably they
>could all be encrypted by bad guys.
>
>If an infected PC does not have write access to a server, can it
>encrypt files on it? I think not.
>
>If a PC is on the network but is not configured to share its files,
>can its files be encrypted from the infected PC? Again, I think not.
>If not, we could have one PC that does frequent backups by reading the
>files on the servers, but is itself immune to being ransomed.

Your assumptions are probably true, *if* none of the PCs involved have
exploitable vulnerabilities.

Unfortunately, a lot of malware-spreading has occurred when one
infected PC on a LAN is able to access vulnerable services on another
PC on the LAN and "break in", bypassing the normal permissions
checks.

It used to be said that if you had a Windows PC, "right out of the
box" with the factory-installed version of Windows on it, and
connected it to a live Internet feed so it could upgrade itself from
Microsoft's servers, there was a good chance that it would be
"cracked" over the Internet before it had time to download and install
the security fixes which closed the vulnerabilities it was shipped
with.  Doing a "safe" upgrade of a new machine really required hooking
it up behind a "one client only, outbound connections only" firewall,
to keep it condomed off from attackers until it had time to install
fixes for the most recent of vulnerabilities.

So, in principle, an infected client system on your LAN might use a
"zero day" attack to compromise one of your servers and encrypt files
thereon, even if the server's sharing permissions were set to deny
write access by clients.

The same is true for other operating systems, of course... Linux and
*BSD and MacOS have all been vulnerable to one or another form of
attack at various times.  Windows is just the worst-off.

[toc] | [prev] | [next] | [standalone]


#410270

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-02 12:20 -0700
Message-ID<ng894h$17p$1@dont-email.me>
In reply to#410262
On 5/2/2016 11:59 AM, Dave Platt wrote:
> Your assumptions are probably true, *if* none of the PCs involved have
> exploitable vulnerabilities.

And, "exploitable" is a moving target.  A machine that "appears" to be
secure today can be vulnerable tomorrow -- when an exploit is discovered.
This suggests the machine has to be updating itself regularly.  Which
suggests it is also accessible remotely.

> Unfortunately, a lot of malware-spreading has occurred when one
> infected PC on a LAN is able to access vulnerable services on another
> PC on the LAN and "break in", bypassing the normal permissions
> checks.

And the LAN is not the only attack vector!  Anything that "causes code
to be executed" (think about that!  :> )  is an opportunity for malware to
gain a foothold.  E.g., viewing a photograph that has been specially
crafted to exploit a bug in a particular JPEG decoder could result in
an infection.

A problem I've encountered with "servers" is that they often have some nominal
applications installed "for convenience" (usually, of the Operators).  E.g.,
a web browser, PDF reader, etc.  So the Operators can examine selective
files ON the server (without having to access them "from afar").

These nominal applications aren't typically maintained well.  So, may not have
the latest security patches.

And, there's the whole Best Practices issue:  why are they on the server
at all?  (like eating in bed:  wrong activity for that location!)

> It used to be said that if you had a Windows PC, "right out of the
> box" with the factory-installed version of Windows on it, and
> connected it to a live Internet feed so it could upgrade itself from
> Microsoft's servers, there was a good chance that it would be
> "cracked" over the Internet before it had time to download and install
> the security fixes which closed the vulnerabilities it was shipped
> with.  Doing a "safe" upgrade of a new machine really required hooking
> it up behind a "one client only, outbound connections only" firewall,
> to keep it condomed off from attackers until it had time to install
> fixes for the most recent of vulnerabilities.

Or, install updates "offline".  When I build a machine, it doesn't see
the outside world until it NEEDS to see it (most of my machines have
never sent/seen an octet outside this house)

> So, in principle, an infected client system on your LAN might use a
> "zero day" attack to compromise one of your servers and encrypt files
> thereon, even if the server's sharing permissions were set to deny
> write access by clients.

Leave a floppy/thumb drive in the machine as it's booting and have the
boot order set for CONVENIENCE (boot USB/floppy BEFORE disk) instead
of SECURITY (boot only from hard disk or PXE) and you can do damn near
anything to the PC without the user/operator knowing its happened!
(controlling physical access is mandatory)

> The same is true for other operating systems, of course... Linux and
> *BSD and MacOS have all been vulnerable to one or another form of
> attack at various times.  Windows is just the worst-off.

Windows tries to be turn-key in too many ways.  So, it leaves services
configured that it doesn't *need* to leave running.  Do you know which
ports are open?  Do you know what processes are running?  Do you know
which applications can *potentially* be invoked (by a user/operator)?

Do ALL of the folks who have access to the machine know these things?

[toc] | [prev] | [next] | [standalone]


#410282

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2016-05-02 16:29 -0400
Message-ID<5727B8BB.80404@electrooptical.net>
In reply to#410246

On 05/02/2016 01:47 PM, John Larkin wrote:
> 
> Getting ransomed sounds awful to me. Maybe somebody can answer these 
> questions:
> 
> If we have a bunch of servers on an internal natwork, presumably
> they could all be encrypted by bad guys.
> 
> If an infected PC does not have write access to a server, can it 
> encrypt files on it? I think not.

It has to get into the server first, but then it had to get into your
network somehow too.  It helps if the emergency backup device SSHes into
the server to pull files, rather than the other way round.  I use Qubes
OS for that job.

> 
> If a PC is on the network but is not configured to share its files, 
> can its files be encrypted from the infected PC? Again, I think not.

Again, it has to be hacked first.  You want the smallest possible attack
surface--that is, not samba or NFS or....  I keep just about everything
under version control, and push commits to a few locations for offsite
backup.  Other locations magically download commits to Qubes VMs.

> If not, we could have one PC that does frequent backups by reading
> the files on the servers, but is itself immune to being ransomed.

Assuming it doesn't have exploitable bugs.  Having different types of
emergency backup system, with absolutely minimal attack surfaces, and
frequent backups of my actual work onto DVD is my approach.

Version control software is cool for this, because it notices when files
change.

Cheers

Phil Hobbs
(In the middle of building another of those swoopy Supermicro servers,
for home.)

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

[toc] | [prev] | [next] | [standalone]


#410284

FromMartin Riddle <martin_ridd@verizon.net>
Date2016-05-02 16:36 -0400
Message-ID<g9efibha89bjrvt6q39ruoeg30aglnu6qb@4ax.com>
In reply to#410246
On Mon, 02 May 2016 10:47:05 -0700, John Larkin
<jjlarkin@highlandtechnology.com> wrote:

>
>Getting ransomed sounds awful to me. Maybe somebody can answer these
>questions:
>
>If we have a bunch of servers on an internal natwork, presumably they
>could all be encrypted by bad guys.
>
>If an infected PC does not have write access to a server, can it
>encrypt files on it? I think not.
>
>If a PC is on the network but is not configured to share its files,
>can its files be encrypted from the infected PC? Again, I think not.
>If not, we could have one PC that does frequent backups by reading the
>files on the servers, but is itself immune to being ransomed.

The only ransomware I've seen encrypts the desktop.
It will follow links as well, so if there are server links present and
the server allows write access then the writable shares are encrypted.

Backup rotate backup archive.

And the ransom is not cheap, a couple of hundred bitcoin (> ~$100k)



Cheers

[toc] | [prev] | [next] | [standalone]


#410291

FromOG <OG@NoSpam.com>
Date2016-05-02 15:54 -0700
Message-ID<ng8lre$1mpc$1@gioia.aioe.org>
In reply to#410246
Short answer.
Best practice.

Ransomeware usually encrypts the directory structure.  That is almost 
instantaneous.

Ransomeware searches for ALL connected devices.

Ransomeware waits as long as it wants before doing its dirty work.

Virus scanners may not be able to detect the signature on newly created 
ransomware.  If I was a nasty black hat I would do just that, create a 
new ransomeware signature every so often.

Terabyte USB3 drives are cheap and fast.

Backup software is cheap.

Make multiple backups, one per week for several months.

It may be that the backup have the ransomware but yet unactivated.

Backup then air gap those USB backups.  I pull the plug on the back of 
the USB drive.  Currently using 5T USB3 Seagates (about $130 each at 
local Costco)

NAS is too slow.

I do all of that! (but on a smaller scale since I am not a great target 
like you)

You might consider Macrium Reflect for work and Macrium Reflect Free for 
home.  That is what I use to make "Images" (not clones).
I am not associated with these products, just a user.

Clones include hidden stuff not in the directory and bad sectors.
Think about it.  I could write to the "unused disk" area and store my 
nasty code there or even make a bad sector to hold my code.
Images only include directory stuff and leave bad sectors behind.
Incremental backup might be acceptable but I only do full backups.
I thing Incremental backup might be vulnerable to incrementally backing 
up ransomeware.

[toc] | [prev] | [next] | [standalone]


#410333

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-02 21:59 -0700
Message-ID<ng9b1m$n6r$1@dont-email.me>
In reply to#410291
On 5/2/2016 3:54 PM, OG wrote:
> Short answer.
> Best practice.
>
> Ransomeware usually encrypts the directory structure.  That is almost
> instantaneous.

I've only once had to "fix" a "ransomed" computer -- and it wasn't truly
"held hostage" (just an altered browser start page to make it appear to be).

If all the software did was scramble the directory structure, it would be
relatively easy to reclaim much of a "scrambled drive".  (An "undelete"
sort of tool could do it coupled with some file/OS heuristics).

Encryption takes resources -- chief among them, time (though space is
also important; if the data grows during the encryption process, there is
the risk that it will consume available free space -- and, therefore,
become noticeable -- before completing its task).

An infection can't reliably predict which files a user will see an interest
in, soon.  To be effective (not detectable until after the fact), any scheme
has to be able to operate, undetected, while doing its dirty work.

One approach could be to see when the machine *seems* to be idle (e.g., left
running overnight, unattended).  But, predicting the future based on
observations of the present is a skill worth far more "in general" than
a malware producer could be expected to recover by way of ransom!  :>

So, instead, it must know how to operate alongside the normally operating
machine -- without noticeably increasing the system load (which would
make the system appear sluggish and possibly attract the attention of the
user prematurely).

As such, it would have to be able to encrypt files/structures AND decrypt
them "on the fly" -- in the event the user opted to access one, by chance,
before the entire job had been completed.  (The malware could wait until
everything was encrypted and then remove the "convenience decrypter" in
one fell swoop -- rendering the drive "immediately" encrypted... apparently)

This would suggest an encryption scheme that is relatively little effort to
decrypt (amount of work required; says nothing DIRECTLY about the strength
of the encryption).

It could also target the media itself; though if that were the case, one
would imagine you'd see drive manufacturers explicitly mentioned in the
cases reported.

> Ransomeware searches for ALL connected devices.

I think there was a NAS manufacturer whose products were targeted.

> Ransomeware waits as long as it wants before doing its dirty work.

By that thinking, you NEVER know if you're safe!

> Virus scanners may not be able to detect the signature on newly created
> ransomware.  If I was a nasty black hat I would do just that, create a new
> ransomeware signature every so often.

Which is why scanners also look for patterns of behavior:  why is this
process accessing this resource so often?  And, in such a "random"
pattern?

> Terabyte USB3 drives are cheap and fast.
>
> Backup software is cheap.
>
> Make multiple backups, one per week for several months.

And how many terabyte drives do you buy to backup your terabyte drive?  :>

> It may be that the backup have the ransomware but yet unactivated.
>
> Backup then air gap those USB backups.  I pull the plug on the back of the USB
> drive.  Currently using 5T USB3 Seagates (about $130 each at local Costco)

Any time you are actively *using* the drives, they are vulnerable.
Does the machine that you attach them to (EVERY machine that you
attach them to) have ANY applications that do anything other than
"copy bytes to/from the drives"?  Then each of those applications
is a potential exploit target.

> NAS is too slow.

For what?  Malware sitting on machine A can just as easily encrypt files
on a NAS "at its leisure".  Of course, if the encryption is done "in-band",
then you run the risk that some other user might notice the encrypted
file if their client does NOT have the same malware coordinated with the
first.

As many NAS's run FOSS that has been repackaged as a black box (most often
with the manufacturer being 98.33342% clueless as to what all the software
*in* that repackaged FOSS bundle actually does, its vulnerabilities, etc.),
then a network appliance is just as vulnerable as any other machine.
Esp as most have mechanisms to allow their firmware/software to be
dynamically updated.  AND, are also proud to announce what they are!
("OK, I have stumbled on a Foomatic Thingamatron 3000, here.  What's
the proper exploit to compromise it...?")

> I do all of that! (but on a smaller scale since I am not a great target like you)
>
> You might consider Macrium Reflect for work and Macrium Reflect Free for home.
> That is what I use to make "Images" (not clones).
> I am not associated with these products, just a user.
>
> Clones include hidden stuff not in the directory and bad sectors.
> Think about it.  I could write to the "unused disk" area and store my nasty
> code there or even make a bad sector to hold my code.
> Images only include directory stuff and leave bad sectors behind.

Depends on the imaging software.  Many BIOS's count on "unused" portions
of disks to hold extensions to their bootstraps, etc.  Leave them behind
and a virgin disk would never boot -- after your "image" is installed.

> Incremental backup might be acceptable but I only do full backups.

On terabyte drives?  :>

> I thing Incremental backup might be vulnerable to incrementally backing up
> ransomeware.

[toc] | [prev] | [next] | [standalone]


#410336

FromOG <OG@NOWHERE.COM>
Date2016-05-02 23:08 -0700
Message-ID<ng9f94$klk$1@adenine.netfront.net>
In reply to#410333
You need to read up on ransomeware.

They can encrypt a directory in less than a second.
Files do not need to be encrypted to screw up the drive access.

You are assuming they are using some complex algo to do it.
Not necessary, just an XOR the directory will stymie most users.

A NAS is slow compared to a dedicated USB3 drive for backing up.
That is also taking into account all the other traffic that might be on 
the network.

Terabytes are compressed so it is not the same size.


--- news://freenews.netfront.net/ - complaints: news@netfront.net ---

[toc] | [prev] | [next] | [standalone]


#410337

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-03 00:34 -0700
Message-ID<ng9k3r$gc1$1@dont-email.me>
In reply to#410336
On 5/2/2016 11:08 PM, OG wrote:
> You need to read up on ransomeware.

And you need to read up on operating systems and file systems!  :>

> They can encrypt a directory in less than a second.

An encrypted directory just obfuscates the *references* to the
data on the drive.  The data is still intact.  And, heuristic
algorithms can piece much of the data back together.

[You've obviously never done any forensic analysis of media]

> Files do not need to be encrypted to screw up the drive access.

Correct.  You can simply botch the "partition table" and render a drive
inaccessible.  Until someone with a little bit of knowledge comes along
and fixes the table and restores the entire drive's contents.

Anything that is trivial to undo is not worth doing.  Given how
readily folks can find information about (damn near) anything,
nowadays, such an exploit would be "fixed" in less time than it
took to implement.  You'd find little apps offered that you could
load on a thumbdrive to "restore ransomed disks".

[E.g., HP's "Secure Web Console" -- note the choice of name!  Now, go
read up on the implementation  :> ]

Instead, you need a scheme that can't be easily circumvented.
Until it has done a LOT of damage.  (e.g., the hospital? in the
news recently; do you think all of its machines "spontaneously"
were locked up?)

If you think ransomware will be docile going forward, your protective
measures will almost certainly be circumvented -- in ways that
you won't be able to recover ("Gee, the contents of my backups are
ALSO encrypted!  I never noticed that, before -- cuz I always viewed
them on the same infected system that created them!")

> You are assuming they are using some complex algo to do it.
> Not necessary, just an XOR the directory will stymie most users.

Again, if its trivial to implement, its trivial to restore -- AND
trivial for others to determine how to undo.

E.g., the root directory of most Windows machines is KNOWN to contain
certain entries (NTLDR, NTDETECT, Program Files, etc.).  So, an examination
of its current contents allows you to determine how it was "encrypted"
(if a simple XOR).

Note that you also have to ensure the "in use" entries are preserved -- along
with the blocks to which they reference.  Otherwise, the mere use of the
system will destroy data -- just as if the malware had done it *directly*.
Few folks would pay ransom if they knew they'd already stood a good chance of
having LOST files!

> A NAS is slow compared to a dedicated USB3 drive for backing up.

I can move data on/off my NAS at speeds approaching wire speed
(e.g., tens of megabytes per second).  Stealthful malware
doesn't care about speed as it relies on doing its work WHILE
the user is oblivious of its presence.

The flaw in attacking shared storage in-band is that the portal
through which THIS user views the data (which is being encrypted)
differs from the portal through which another user views the same data.
So, it is possible for someone to notice "something fishy" before
the malware has had a chance to do its damage.  And, also tells
those users where the malware likely resides!

> That is also taking into account all the other traffic that might be on the
> network.
>
> Terabytes are compressed so it is not the same size.

[toc] | [prev] | [next] | [standalone]


#410386

FromNeon John <no@never.com>
Date2016-05-03 16:09 -0400
Message-ID<njvhibl3odh7123jfupmkqh17mrvs9drj7@4ax.com>
In reply to#410291
On Mon, 2 May 2016 15:54:39 -0700, OG <OG@NoSpam.com> wrote:


>Backup then air gap those USB backups.  I pull the plug on the back of 
>the USB drive.  Currently using 5T USB3 Seagates (about $130 each at 
>local Costco)
>
>NAS is too slow.

For what?

>
>I do all of that! (but on a smaller scale since I am not a great target 
>like you)

This is my backup strategy that has served me well for about a decade.

Each employee's computer has 5 external drives identical to the
built-in ones.  They're kept in a fire-proof gun safe.  At night each
employee selects the next drive in line, connects it to the machine,
shuts down and boots CloneZilla, an image copying program.

In the morning the exact image of the working drive is on the backup.
It is removed and put back in the safe.

In the event of a drive failure, the latest backup is removed from the
safe and installed in the affected machine.  Boot, wait 15 minutes and
continue work.  The 15 minute wait is for the Unison program that runs
out of cron every 15 minute drive to restore the day's work right up
to the last 15 minute sync.  The maximum work lost is 15 minutes'
worth.  Then a new blank drive is ordered and put in the rotation as
the next drive.

We're an all-Linux shop and this has worked every time we've had a
drive failure.


>Clones include hidden stuff not in the directory and bad sectors.

A theoretical hazard perhaps but at least in the Linux world, not a
real one.

John
John DeArmond
http://www.neon-john.com
http://www.tnduction.com 
Tellico Plains, Occupied TN
See website for email address

[toc] | [prev] | [next] | [standalone]


#410390

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2016-05-03 13:29 -0700
Message-ID<83be49ee-1f1f-4da4-a5c6-f010dc28b498@googlegroups.com>
In reply to#410386
Den tirsdag den 3. maj 2016 kl. 22.09.55 UTC+2 skrev Neon John:
> On Mon, 2 May 2016 15:54:39 -0700, OG <OG@NoSpam.com> wrote:
> 
> 
> >Backup then air gap those USB backups.  I pull the plug on the back of 
> >the USB drive.  Currently using 5T USB3 Seagates (about $130 each at 
> >local Costco)
> >
> >NAS is too slow.
> 
> For what?
> 
> >
> >I do all of that! (but on a smaller scale since I am not a great target 
> >like you)
> 
> This is my backup strategy that has served me well for about a decade.
> 
> Each employee's computer has 5 external drives identical to the
> built-in ones.  They're kept in a fire-proof gun safe.  At night each
> employee selects the next drive in line, connects it to the machine,
> shuts down and boots CloneZilla, an image copying program.
> 
> In the morning the exact image of the working drive is on the backup.
> It is removed and put back in the safe.
> 
> In the event of a drive failure, the latest backup is removed from the
> safe and installed in the affected machine.  Boot, wait 15 minutes and
> continue work.  The 15 minute wait is for the Unison program that runs
> out of cron every 15 minute drive to restore the day's work right up
> to the last 15 minute sync.  The maximum work lost is 15 minutes'
> worth.  Then a new blank drive is ordered and put in the rotation as
> the next drive.
> 
> We're an all-Linux shop and this has worked every time we've had a
> drive failure.
> 

really, shutdown, diskchange, reboot every day and data is already backed up elsewhere?

I doubt that adds up to time saved

-Lasse 

[toc] | [prev] | [next] | [standalone]


#410410

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-03 17:31 -0700
Message-ID<ngbfmu$b87$1@dont-email.me>
In reply to#410386
On 5/3/2016 1:09 PM, Neon John wrote:

>> I do all of that! (but on a smaller scale since I am not a great target
>> like you)
>
> This is my backup strategy that has served me well for about a decade.
>
> Each employee's computer has 5 external drives identical to the
> built-in ones.  They're kept in a fire-proof gun safe.  At night each
> employee selects the next drive in line, connects it to the machine,
> shuts down and boots CloneZilla, an image copying program.

You usually don't need a drive as large as the drive in the machine
as CZ only copies the "live" portion of the file system and compresses
it, at that.  (usually, you have a fair bit of free space on the
drive that needn't be replicated on the CZ image)

> In the morning the exact image of the working drive is on the backup.
> It is removed and put back in the safe.
>
> In the event of a drive failure, the latest backup is removed from the
> safe and installed in the affected machine.  Boot, wait 15 minutes and
> continue work.  The 15 minute wait is for the Unison program that runs
> out of cron every 15 minute drive to restore the day's work right up
> to the last 15 minute sync.  The maximum work lost is 15 minutes'
> worth.  Then a new blank drive is ordered and put in the rotation as
> the next drive.

Have you tested to see how CZ handles a faulty disk?  (source or target)
I only build images as I am building the original machine (installing
executables)  So, reasonably low "frequency" --> less likely to stumble
on a defective drive (if so, replace the drive as the machine is being
*built*, not "periodically imaged").

I.e., will you KNOW that the image is intact in the event of a read
failure on the source (or write/verify failure on the target)?

I keep my "playpen" on a separate drive/partition/slice so I can know
that all my changes will be there -- no need to be tinkering with the
executables; that's a more significant action that needs to be
specifically tracked (as do my configuration file changes -- "Is this
machine configured differently than this other?  If so, why??")

I push backups onto NAS's or tape -- depending on how many I want/need
to save.  E.g., I've been backing up the entire database in my current
design every day rather than trying to handle incremental tweeks.

> We're an all-Linux shop and this has worked every time we've had a
> drive failure.

<touch wood> I've only had one desktop drive fail (in 30+ years) but
two laptop drives (because I was running them 24/7/365).

And, non-windows machines are much easier to "port".  So, I can lift a
drive out of one machine and install it in another and be reasonably
confident that it will boot, first time.

>> Clones include hidden stuff not in the directory and bad sectors.
>
> A theoretical hazard perhaps but at least in the Linux world, not a
> real one.

CZ takes steps to preserve, e.g., the first track -- even though it
doesn't *appear* to be used (by the filesystem).

[toc] | [prev] | [next] | [standalone]


#410330

FromLes Cargill <lcargill99@comcast.com>
Date2016-05-02 23:36 -0500
Message-ID<ng99hq$h76$4@dont-email.me>
In reply to#410246
John Larkin wrote:
>
> Getting ransomed sounds awful to me. Maybe somebody can answer these
> questions:
>
> If we have a bunch of servers on an internal natwork, presumably they
> could all be encrypted by bad guys.
>
> If an infected PC does not have write access to a server, can it
> encrypt files on it? I think not.
>
> If a PC is on the network but is not configured to share its files,
> can its files be encrypted from the infected PC? Again, I think not.
> If not, we could have one PC that does frequent backups by reading the
> files on the servers, but is itself immune to being ransomed.
>
>

I could mumble something about "use virtual machines" but really,
find a pro and do what they say.

-- 
Les Cargill

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web