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


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

OT isolated subnet for talking to "foreign"/untrusted devices

Started byDon Y <blockedofcourse@foo.invalid>
First post2016-04-30 14:41 -0700
Last post2016-05-08 12:50 -0700
Articles 13 — 6 participants

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


Contents

  OT isolated subnet for talking to "foreign"/untrusted devices Don Y <blockedofcourse@foo.invalid> - 2016-04-30 14:41 -0700
    Re: OT isolated subnet for talking to "foreign"/untrusted devices bitrex <bitrex@de.lete.earthlink.net> - 2016-04-30 18:00 -0400
      Re: OT isolated subnet for talking to "foreign"/untrusted devices Don Y <blockedofcourse@foo.invalid> - 2016-04-30 16:00 -0700
    Re: OT isolated subnet for talking to "foreign"/untrusted devices Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2016-05-01 00:08 -0700
      Re: OT isolated subnet for talking to "foreign"/untrusted devices Don Y <blockedofcourse@foo.invalid> - 2016-05-01 01:22 -0700
        Re: OT isolated subnet for talking to "foreign"/untrusted devices Phil Hobbs <pcdhobbs@gmail.com> - 2016-05-01 04:50 -0700
          Re: OT isolated subnet for talking to "foreign"/untrusted devices Don Y <blockedofcourse@foo.invalid> - 2016-05-01 08:54 -0700
            Re: OT isolated subnet for talking to "foreign"/untrusted devices Phil Hobbs <pcdhobbs@gmail.com> - 2016-05-01 09:20 -0700
              Re: OT isolated subnet for talking to "foreign"/untrusted devices Don Y <blockedofcourse@foo.invalid> - 2016-05-01 09:53 -0700
    Re: OT isolated subnet for talking to "foreign"/untrusted devices "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2016-05-07 23:45 -0400
      Re: OT isolated subnet for talking to "foreign"/untrusted devices Rob <nomail@example.com> - 2016-05-08 14:01 +0000
        Re: OT isolated subnet for talking to "foreign"/untrusted devices "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2016-05-08 11:09 -0400
      Re: OT isolated subnet for talking to "foreign"/untrusted devices Don Y <blockedofcourse@foo.invalid> - 2016-05-08 12:50 -0700

#410039 — OT isolated subnet for talking to "foreign"/untrusted devices

FromDon Y <blockedofcourse@foo.invalid>
Date2016-04-30 14:41 -0700
SubjectOT isolated subnet for talking to "foreign"/untrusted devices
Message-ID<ng38k1$duc$1@dont-email.me>
I rescue a fair bit of kit.  Much of it "(networked) appliances".
As I've no idea of its past pedigree, I typically bring it up
using a sacrificial laptop (one that I can wipe and rebuild in a
matter of minutes) on a two node network (the laptop and the DUT).

I'm *tempted* (but wary) to serve up a small subnet off my main
network via DHCP (most appliances seem to want dynamically assigned
IP's -- if not "as is", then "when reset to factory defaults").

But, this opens up the hosts on the network to any malware on the
device in question.  If I introduce a firewall/filter between the
particular router ports and the device, then I've got to deal with
tweaking that "as appropriate" for the particular device -- and, hope
I don't overlook something (like how it may have been configured for
the previous device, days/weeks/months earlier).

I.e., it doesn't look like there's a "100% safe" way to do this.
That I should stick to the sacrificial laptop approach?

How do others handle this?  Or, just blissful ignorance?  :>

[toc] | [next] | [standalone]


#410045

Frombitrex <bitrex@de.lete.earthlink.net>
Date2016-04-30 18:00 -0400
Message-ID<_V9Vy.12624$4R6.6380@fx22.iad>
In reply to#410039
On 04/30/2016 05:41 PM, Don Y wrote:
> I rescue a fair bit of kit.  Much of it "(networked) appliances".
> As I've no idea of its past pedigree, I typically bring it up
> using a sacrificial laptop (one that I can wipe and rebuild in a
> matter of minutes) on a two node network (the laptop and the DUT).
>
> I'm *tempted* (but wary) to serve up a small subnet off my main
> network via DHCP (most appliances seem to want dynamically assigned
> IP's -- if not "as is", then "when reset to factory defaults").
>
> But, this opens up the hosts on the network to any malware on the
> device in question.  If I introduce a firewall/filter between the
> particular router ports and the device, then I've got to deal with
> tweaking that "as appropriate" for the particular device -- and, hope
> I don't overlook something (like how it may have been configured for
> the previous device, days/weeks/months earlier).
>
> I.e., it doesn't look like there's a "100% safe" way to do this.
> That I should stick to the sacrificial laptop approach?
>
> How do others handle this?  Or, just blissful ignorance?  :>

An analogy comes to mind. If you connect your main network and the DUT 
somehow, they're having sex.

As everyone who has had sex education knows, there's no such thing as 
"100% safe" sex. Only risk-reduction.

It's up to you to decide what level of risk is acceptable for the 
benefit gained from the network and DUT not remaining forever celibate.

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


#410050

FromDon Y <blockedofcourse@foo.invalid>
Date2016-04-30 16:00 -0700
Message-ID<ng3d7a$oi0$1@dont-email.me>
In reply to#410045
On 4/30/2016 3:00 PM, bitrex wrote:
>> I.e., it doesn't look like there's a "100% safe" way to do this.
>> That I should stick to the sacrificial laptop approach?
>>
>> How do others handle this?  Or, just blissful ignorance?  :>
>
> An analogy comes to mind. If you connect your main network and the DUT somehow,
> they're having sex.

No, there's only the *potential* for it.  Just like having guys and gals
in the same room doesn't necessarily imply that THEY are "having sex".

The firewall/packet filter is, effectively, the condom -- like putting
the "newcomer" (boy/girl) outside a protective bubble.

The analogy falls down because a hole in the bubble can lead to others
in the room being "infected" -- even if they'd not opted to "engage" with
the newcomer.  Like wearing a condom -- and someone ELSE in the room
ending up catching an STD, instead!

> As everyone who has had sex education knows, there's no such thing as "100%
> safe" sex. Only risk-reduction.
>
> It's up to you to decide what level of risk is acceptable for the benefit
> gained from the network and DUT not remaining forever celibate.

There are other options between "promiscuity" and "celibacy".

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


#410083

FromKevin McMurtrie <mcmurtrie@pixelmemory.us>
Date2016-05-01 00:08 -0700
Message-ID<mcmurtrie-FB4260.00082701052016@news.sonic.net>
In reply to#410039
In article <ng38k1$duc$1@dont-email.me>,
 Don Y <blockedofcourse@foo.invalid> wrote:

> I rescue a fair bit of kit.  Much of it "(networked) appliances".
> As I've no idea of its past pedigree, I typically bring it up
> using a sacrificial laptop (one that I can wipe and rebuild in a
> matter of minutes) on a two node network (the laptop and the DUT).
> 
> I'm *tempted* (but wary) to serve up a small subnet off my main
> network via DHCP (most appliances seem to want dynamically assigned
> IP's -- if not "as is", then "when reset to factory defaults").
> 
> But, this opens up the hosts on the network to any malware on the
> device in question.  If I introduce a firewall/filter between the
> particular router ports and the device, then I've got to deal with
> tweaking that "as appropriate" for the particular device -- and, hope
> I don't overlook something (like how it may have been configured for
> the previous device, days/weeks/months earlier).
> 
> I.e., it doesn't look like there's a "100% safe" way to do this.
> That I should stick to the sacrificial laptop approach?
> 
> How do others handle this?  Or, just blissful ignorance?  :>

You'd do this with two WAN addresses.  One WAN address would be 
dedicated for a NAT+router for the IoT pool.  Preferably, the router 
would have a connection rate throttle in case any of those devices are 
programmed for attacks.

Some SOHO routers can manage multiple NAT subnets from one WAN address.  
Unfortunately, SOHO routers are typically buggy, easily hacked, piles of 
garbage that will never be upgraded to working condition.  They're worse 
than IoT junk because they offer hackers more power.

-- 
I will not see posts from astraweb, theremailer, dizum, or google
because they host Usenet flooders.

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


#410086

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-01 01:22 -0700
Message-ID<ng4e58$qf9$1@dont-email.me>
In reply to#410083
On 5/1/2016 12:08 AM, Kevin McMurtrie wrote:
>> I.e., it doesn't look like there's a "100% safe" way to do this.
>> That I should stick to the sacrificial laptop approach?
>>
>> How do others handle this?  Or, just blissful ignorance?  :>
>
> You'd do this with two WAN addresses.  One WAN address would be
> dedicated for a NAT+router for the IoT pool.  Preferably, the router
> would have a connection rate throttle in case any of those devices are
> programmed for attacks.

Sorry, I wasn't clear.

First, not necessarily IoT devices.  E.g., I see a lot of NAS's, smart
switches, AP's, routers, "computers", etc.  I'm tinkering with some
video conferencing kit, presently.

In the past, a rescued device is connected to the laptop running a
simple DHCP server (plus other "boot" protocols).  So, the device ONLY
sees the "sacrificial laptop".  I.e., the device can't talk to the outside
world at all.  (nor can the laptop)

[My "network" is similarly isolated -- just a switch.]

When I bring up a rescued device, I use the laptop for <whatever> the
device requires for configuration, initialization, firmware updates, etc.
[If I need to fetch an update from The Internet, I do so on another machine
and sneakernet it to the sacrificial laptop to be uploaded to the device]

As I don't know what the device will want to do/say in NORMAL operation
(let alone what it might try to do/say if it has been compromised), this
DMZ sort of approach between the laptop and device is an expedient.
Some devices have special network discovery tools that have to be installed
just to talk to the device; I'm unconstrained in how I "mangle" the laptop's
configuration by installing those tools, there -- as the laptop will be
wiped clean when I am done with the exercise.

Based on what I learn from this process, I'll decide whether or not to use
the device, keep it for possible future use, or recycle it.

I'd like to skip the laptop aspect and rely, instead, on one of the hosts
on my "real" network to accomplish the same.

But, first, have to keep the device from talking to anything other than the
selected device (or, devices if I want to let another box serve up the
various boot protocols).  And, have to assume the boxes that it "should"
talk to are immune from any possible attacks that the device could launch.

*Or*, interpose a firewall/packet filter to constrain just what the
device can "say" -- and who it can say it to!

But, this seems like it will be MORE work as that firewall will need to be
tweaked based on the LEGITIMATE needs of the device in question.  And, as
the configuration for the "previous device" may be unnecessarily permissive
for the NEXT device, it seems like it would be easy to forget to clamp down
the firewall before trying the next device.

> Some SOHO routers can manage multiple NAT subnets from one WAN address.
> Unfortunately, SOHO routers are typically buggy, easily hacked, piles of
> garbage that will never be upgraded to working condition.  They're worse
> than IoT junk because they offer hackers more power.

Exactly.  *ANY* device can be a platform from which to launch an attack.
My "sacrificial laptop" limits the damage that it could do -- and gives me
a reliable way of knowing that any possible damage has been "undone"
(when I reload the laptop's image).

I.e., it doesn't seem like I can get any better than this... (?)

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


#410091

FromPhil Hobbs <pcdhobbs@gmail.com>
Date2016-05-01 04:50 -0700
Message-ID<85cfffbf-fa35-475b-87c6-755331492805@googlegroups.com>
In reply to#410086
>Exactly.  *ANY* device can be a platform from which to launch an attack. 
>My "sacrificial laptop" limits the damage that it could do -- and gives me 
>a reliable way of knowing that any possible damage has been "undone" 
>(when I reload the laptop's image).

Years ago, that was true. Now there are malware toolkits in the wild that infect firmware (BIOS and HDD), so you can't reliably wipe the laptop. 

Cheers

Phil Hobbs

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


#410101

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-01 08:54 -0700
Message-ID<ng58lh$ljk$1@dont-email.me>
In reply to#410091
On 5/1/2016 4:50 AM, Phil Hobbs wrote:
>> Exactly.  *ANY* device can be a platform from which to launch an attack.
>> My "sacrificial laptop" limits the damage that it could do -- and gives
>> me a reliable way of knowing that any possible damage has been "undone"
>> (when I reload the laptop's image).
>
> Years ago, that was true. Now there are malware toolkits in the wild that
> infect firmware (BIOS and HDD), so you can't reliably wipe the laptop.

So, this "device" will have a large enough payload that it can, remotely,
deliver that will be able to determine which brand of disk drive, which BIOS,
etc. WITHOUT ACCESSING A REMOTE SERVER ... and, do what, exactly?  Open a
backdoor (that nothing can ever access)?  Erase my hard drive?  :>

Maybe I should rescue another laptop and jumper /WP to ground.  End of
BIOS infection threat.

Pull hard drive and boot from DVD -- or a thumb drive (that I can erase
later).  End of disk drive threat.

Amusing little project.  I'll put one on my shopping list for tuesday...
I'm sure I'll be able to find something with a bad battery, etc. for $5

I won't lose a microsecond of sleep over that possibility!  :>

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


#410102

FromPhil Hobbs <pcdhobbs@gmail.com>
Date2016-05-01 09:20 -0700
Message-ID<9236e3b9-9d6e-4876-834c-440985be9cb7@googlegroups.com>
In reply to#410101
Google "evil maid attack". 

Cheers

Phil Hobbs

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


#410104

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-01 09:53 -0700
Message-ID<ng5c3o$3ji$1@dont-email.me>
In reply to#410102
On 5/1/2016 9:20 AM, Phil Hobbs wrote:
> Google "evil maid attack".

So, she's going to take a NAS device, video conferencing station, VoIP
telephone, network enabled UPS, etc. and inject the malware into it
(carefully selecting which devices she has the knowledge of how to
infect while ensuring that they still appear to perform their intended
duties.)

Then, hope that the infected device can infect a remotely connected
laptop (running code out of RAM with it's FLASH write protected and
disk removed)?

And, she's doing this in the *hope* of stealing a password to a bank
account -- never knowing that the laptop will NEVER talk to the
Internet?

Ah, maybe she'll break into the house and steal the laptop at
some later date in the hope that it has cached all the keystrokes
that have been typed -- in that same FLASH memory (cuz there's no
other persistent store present -- unless, of course, she's also
elected to install a disk drive in the empty drive bay!)

[I guess I should be vigilant and make sure no one is taking an
extraordinary interest in WHICH devices I am purchasing and, later,
tailing me as I drive home with said devices (ah, no doubt she'll
put a tracking device on my car!)]

KISS.  Google "wireless pwn plug" (of course, a pwn plug will work
fine if you don't have an airgap in place!)

Methinks she'll just steal the laptop or the silverware and be on
her way.

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


#411024

From"Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com>
Date2016-05-07 23:45 -0400
Message-ID<ngmcgh$pmk$1@dont-email.me>
In reply to#410039
Don Y wrote:
> I rescue a fair bit of kit.  Much of it "(networked) appliances".
> As I've no idea of its past pedigree, I typically bring it up
> using a sacrificial laptop (one that I can wipe and rebuild in a
> matter of minutes) on a two node network (the laptop and the DUT).
>
> I'm *tempted* (but wary) to serve up a small subnet off my main
> network via DHCP (most appliances seem to want dynamically assigned
> IP's -- if not "as is", then "when reset to factory defaults").
>
> But, this opens up the hosts on the network to any malware on the
> device in question.  If I introduce a firewall/filter between the
> particular router ports and the device, then I've got to deal with
> tweaking that "as appropriate" for the particular device -- and, hope
> I don't overlook something (like how it may have been configured for
> the previous device, days/weeks/months earlier).
>
> I.e., it doesn't look like there's a "100% safe" way to do this.
> That I should stick to the sacrificial laptop approach?
>
> How do others handle this?  Or, just blissful ignorance?  :>

Would it serve your purpose to simply put three NAT routers in a Y 
arrangement, so one connects to the internet and feeds the other two? 
Then you'd have two networks that could never talk to each other, but 
both can reach out.


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


#411060

FromRob <nomail@example.com>
Date2016-05-08 14:01 +0000
Message-ID<slrnniuhl1.m9s.nomail@xs9.xs4all.nl>
In reply to#411024
Tom Del Rosso <fizzbintuesday@that-google-mail-domain.com> wrote:
> Would it serve your purpose to simply put three NAT routers in a Y 
> arrangement, so one connects to the internet and feeds the other two? 
> Then you'd have two networks that could never talk to each other, but 
> both can reach out.

Any decent router can do that all-by-itself.

I have a separate guest WiFi network that works exactly like that.
And I could add a hardware ethernet port to it when required.

Of course it is not possible to connect to the devices on that network
from my normal network, and I think that is what he sort of suggests
to be required (adapting the firewall to the situation, avoiding the
laptop).

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


#411066

From"Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com>
Date2016-05-08 11:09 -0400
Message-ID<ngnkkd$18m$1@dont-email.me>
In reply to#411060
Rob wrote:
> Tom Del Rosso <fizzbintuesday@that-google-mail-domain.com> wrote:
>> Would it serve your purpose to simply put three NAT routers in a Y
>> arrangement, so one connects to the internet and feeds the other two?
>> Then you'd have two networks that could never talk to each other, but
>> both can reach out.
>
> Any decent router can do that all-by-itself.

He said he "rescues a fair bit of kit", meaning that he might have a lot 
of cheap routers that can't be set up to do that.

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


#411093

FromDon Y <blockedofcourse@foo.invalid>
Date2016-05-08 12:50 -0700
Message-ID<ngo53n$gp$1@dont-email.me>
In reply to#411024
On 5/7/2016 8:45 PM, Tom Del Rosso wrote:
> Don Y wrote:
>> I rescue a fair bit of kit.  Much of it "(networked) appliances".
>> As I've no idea of its past pedigree, I typically bring it up
>> using a sacrificial laptop (one that I can wipe and rebuild in a
>> matter of minutes) on a two node network (the laptop and the DUT).
>>
>> I'm *tempted* (but wary) to serve up a small subnet off my main
>> network via DHCP (most appliances seem to want dynamically assigned
>> IP's -- if not "as is", then "when reset to factory defaults").
>>
>> But, this opens up the hosts on the network to any malware on the
>> device in question.  If I introduce a firewall/filter between the
>> particular router ports and the device, then I've got to deal with
>> tweaking that "as appropriate" for the particular device -- and, hope
>> I don't overlook something (like how it may have been configured for
>> the previous device, days/weeks/months earlier).
>>
>> I.e., it doesn't look like there's a "100% safe" way to do this.
>> That I should stick to the sacrificial laptop approach?
>>
>> How do others handle this?  Or, just blissful ignorance?  :>
>
> Would it serve your purpose to simply put three NAT routers in a Y
> arrangement, so one connects to the internet and feeds the other two?

No "internet" involved.  My network is air-gapped.  And, when I'm
bringing up a "foreign" piece of kit, that "two device" network
(i.e., laptop plus UUT) is similarly air-gapped.

> Then you'd have two networks that could never talk to each other, but
> both can reach out.

The problem is that I want to isolate *one* host from the "normal
network" and let it talk to the UUT; and, have the UUT *only* be able
to talk to that host.  Plus, *probably* serve up the IP via DHCP
(no idea if the UUT will have been preconfigured with a static IP,
what that may be, etc.)

There's still a fair bit of risk, here, as any host on that private network
chosen to talk to the UUT can potentially be compromised.  Then, be a
beachhead into the rest of the network (now or later)

I've stepped back from this and reconsidered my goals.  What I really want
is to have the wider range of tools available on my network to "explore"
any UUT's behavior as well as facilitate bringing it up, etc.  (It
would also be nice to be able to *sit* at a more accommodating workstation
location than to deal with a laptop!  :> )  I.e., it's nice to have a
packet sniffer, vulnerability scanner, DHCP/TFTP server, etc. -- in
addition to whatever "tools" the manufacturer of the UUT has decided
are necessary to interface with the UUT.

I've decided to just build a new laptop image that has a richer set of
tools -- even if that means dual-boot (as some tools run under Windows
while others run under *BSD).  Then, just move this onto a DVD so
I don't have to even worry about whether or not the laptop has been
"reinitialized" since the last device that it encountered.

(This also makes it easy to support multiple diagnostic environments
as I can just create different "live CD's" for each)

[toc] | [prev] | [standalone]


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


csiph-web