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


Groups > sci.electronics.design > #406810

Re: Nest sounds nasty

From Don Y <blockedofcourse@foo.invalid>
Newsgroups sci.electronics.design
Subject Re: Nest sounds nasty
Date 2016-04-09 22:47 -0700
Organization A noiseless patient Spider
Message-ID <necpeq$fo7$1@dont-email.me> (permalink)
References (3 earlier) <pan.2016.04.08.03.39.37.131000@nowhere.invalid> <ne79oq$tci$1@dont-email.me> <pan.2016.04.09.05.52.08.515000@nowhere.invalid> <neaabp$pkb$1@dont-email.me> <pan.2016.04.10.05.09.10.36000@nowhere.invalid>

Show all headers | View raw


On 4/9/2016 10:09 PM, Nobody wrote:
> On Sat, 09 Apr 2016 00:17:42 -0700, Don Y wrote:
>
>> Have you noticed how many Linux-based appliances have been pwned?  Do
>> you think the folks who ported the code deliberately injected bugs in it?
>> Or, rather, that the code was sufficiently too complex and they had
>> to resort to treating it as a (incompletely understood) "black box"?
>
> This has nothing to do with the quality of the kernel's networking stack,
> and everything to do with the application layers being written as if it
> was "desktop-grade" software.

It has everything to do with ignorance as to what goes *on* inside
the network stack and the ways that it can be exploited.  "Let's run
it on Linux" is almost as clueless as "Let's run it on Windows"

> Almost all security issues with Linux-based appliances arise from the
> user-space code, most often within the vendor's own code (although there
> have been a couple of issues with e.g. the popular mini-httpd
> implementations which have affected many downstream vendors).
>
> Whereas proprietary embedded stacks frequently have issues with the base
> networking stack itself.

And you know that, how?  Exactly how many network stacks have you developed
and deployed?

>> If you look inside most modern desktop network stacks, you will see that
>> they go to great lengths for efficiency -- where efficiency is related
>> to bandwidth (not code space or RAM size).  There's a lot of complexity
>> introduced to make the code run faster in the high demand environment
>> of a "computer"; efficiency that isn't necessary in an "appliance".
>
> There's a lot of complexity that's inherent to just getting TCP working
> reliably. The effort required is simply too much for a vendor to create
> their own networking stack from the ground up. Those that try end up with
> something which at best doesn't work on anything other than an ideal
> network and at worst is riddled with exploitable bugs.

Again, you KNOW this, how?  I'm working on my *third* stack...

> The thing about using commodity protocols and implementations is that
> they're well understood and well tested. It's possible to build robust
> systems using them *if* you actually care about robustness. Most of the
> problems stem from the fact that the vendors often don't. Which in turn
> stems largely from market forces; their customers care about price and
> visible functionality, but don't seem to care much about robustness until
> after they actually get bitten by the lack of it.

No, the "ignorance" is just as plentiful in the "let's use a COTS
implementation -- and, hey, here's one that is FREE!".  People thinking that
a black box means they don't have to understand what's *in* that box is
why you get bugs and exploits.

"Let's use floating point" -- without understanding that numbers
(and operators) STILL aren't "ideal".

"Let's use multitasking" -- without understanding its problems.

"Let's buy some off-the-shelf hardware" -- without understanding
it's limitations/requirements.

etc.

It's like thinking that using a fuse means you *can't* (won't) draw more
than the rated current.

When you write something diligently, you *see* what's happening and
(if you've any imagination) can see how it can "go wrong".

When I write code, I look at each aspect of the algorithm and see what
it relies on, assumes and what other things rely on *it*.  "Gee, what
happens if the ARP cache gets poisoned -- will the stack KNOW that
this has happened?  Or, will it merrily chug along misbehaving?
How do I handle two different devices (MACs) each *claiming* to
have a particular IP, possibly interleaving traffic to my node?"

"How can I *prevent* that poisoning?  Should I magically update it's
contents each time I discover a new IP/MAC?  Should I gratuitously
cache any broadcast ARP replies, 'just in case'?  Or, just the
replies to requests that *I* initiate?  What if I already have a
mapping for a particular IP/MAC -- should I silently update the
cache?  Or, perhapsplay it safe and not cache ANY mappings -- just
send an ARP request (and trust its reply) for EACH datagram?  Or,
should I wonder why -- in an appliance setting -- the mapping has
changed in the past 30 seconds?  And has changed yet again a few
seconds later?"

"Do I display a message on the thermostat saying 'I'm confused'?"

"Do I require the user to install static bindings that he/she trusts?
What tools do I give them to do that?  (but, wait, I'm just a thermostat...
will they have to telnet(1) to set up those values?)"

"What do I do if I see all sorts of connection attempts from a variety of
different IP's -- does this make sense in the context of a THERMOSTAT?
Is this a DoS attack -- trying to tie up all of my HANDFUL of available
sockets?  Why would someone want to attack a thermostat??"

Repeat this with ICMP, DNS, HTTP, and any other protocols layered
into the stack.

In a desktop environment (Linux, et al.), you have a user that is
competent -- or who can consult online forums to sort out how -- to
"fix" these things.  In an appliance environment, the appliance does
ALL the work and, at best, has a "check engine" light to alert the
user when it can't handle the current environment.

Appliance designers that think they can just "lift" the stack out of
a desktop machine and have it magically work are often clueless as to
how it can fail in a big way.

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-07 08:37 -0700
  Re: Nest sounds nasty Joe Chisolm <jchisolm6@earthlink.net> - 2016-04-07 11:10 -0500
    Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-07 09:18 -0700
      Re: Nest sounds nasty Joerg <news@analogconsultants.com> - 2016-04-07 09:29 -0700
        Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-07 09:44 -0700
          Re: Nest sounds nasty Joerg <news@analogconsultants.com> - 2016-04-07 10:02 -0700
            Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-07 10:51 -0700
            Re: Nest sounds nasty Robert Baer <robertbaer@localnet.com> - 2016-04-07 20:45 -0800
            Re: Nest sounds nasty jurb6006@gmail.com - 2016-04-07 22:40 -0700
              Re: Nest sounds nasty DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-08 02:01 -0400
          Re: Nest sounds nasty o pere o <me@somewhere.net> - 2016-04-08 12:36 +0200
            Re: Nest sounds nasty Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2016-04-08 07:57 -0400
              Re: Nest sounds nasty bill.sloman@ieee.org - 2016-04-08 16:59 -0700
        Re: Nest sounds nasty bill.sloman@ieee.org - 2016-04-08 02:54 -0700
          Re: Nest sounds nasty Joerg <news@analogconsultants.com> - 2016-04-08 07:25 -0700
            Re: Nest sounds nasty krw <krw@nowhere.com> - 2016-04-08 12:40 -0400
              Re: Nest sounds nasty Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-08 13:18 -0400
                Re: Nest sounds nasty krw <krw@nowhere.com> - 2016-04-08 13:27 -0400
            Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-08 11:18 -0700
              Re: Nest sounds nasty Joerg <news@analogconsultants.com> - 2016-04-08 11:54 -0700
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-08 12:00 -0700
                Re: Nest sounds nasty Joerg <news@analogconsultants.com> - 2016-04-08 14:59 -0700
                Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-09 00:00 +0100
                Re: Nest sounds nasty Joerg <news@analogconsultants.com> - 2016-04-08 16:36 -0700
                Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-09 00:52 +0100
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-08 16:08 -0700
                Re: Nest sounds nasty "dcaster@krl.org" <dcaster@krl.org> - 2016-04-09 17:21 -0700
                Re: Nest sounds nasty "Michael A. Terrell" <mike.terrell@earthlink.net> - 2016-04-17 19:00 -0400
                Re: Nest sounds nasty krw <krw@nowhere.com> - 2016-04-17 20:20 -0400
                Re: Nest sounds nasty "Michael A. Terrell" <mike.terrell@earthlink.net> - 2016-04-19 00:26 -0400
                Re: Nest sounds nasty Jeff Liebermann <jeffl@cruzio.com> - 2016-04-17 17:29 -0700
                Re: Nest sounds nasty "Michael A. Terrell" <mike.terrell@earthlink.net> - 2016-04-19 00:21 -0400
    Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-07 17:34 +0100
      Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-07 09:45 -0700
        Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-07 19:09 +0100
      Re: Nest sounds nasty Joerg <news@analogconsultants.com> - 2016-04-07 10:07 -0700
      Re: Nest sounds nasty Jeff Liebermann <jeffl@cruzio.com> - 2016-04-07 11:09 -0700
        Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-07 19:16 +0100
      Re: Nest sounds nasty Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-07 14:47 -0400
        Re: Nest sounds nasty Jeff Liebermann <jeffl@cruzio.com> - 2016-04-07 22:31 -0700
          Re: Nest sounds nasty DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-08 01:56 -0400
        Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-08 05:51 -0700
          Re: Nest sounds nasty krw <krw@nowhere.com> - 2016-04-08 12:43 -0400
            Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-08 11:29 -0700
            Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-09 00:02 +0100
              Re: Nest sounds nasty krw <krw@nowhere.com> - 2016-04-08 22:28 -0400
              Re: Nest sounds nasty John S <Sophi.2@invalid.org> - 2016-04-09 13:28 -0500
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 12:00 -0700
    Re: Nest sounds nasty krw <krw@nowhere.com> - 2016-04-07 15:49 -0400
    Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-07 13:31 -0700
      Re: Nest sounds nasty Jeff Liebermann <jeffl@cruzio.com> - 2016-04-07 15:22 -0700
        Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-07 16:06 -0700
          Re: Nest sounds nasty Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-07 16:24 -0700
            Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-07 16:52 -0700
              Re: Nest sounds nasty Jeff Liebermann <jeffl@cruzio.com> - 2016-04-07 18:58 -0700
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-07 20:37 -0700
                Re: Nest sounds nasty dagmargoodboat@yahoo.com - 2016-04-10 10:26 -0700
                Re: Nest sounds nasty Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2016-04-10 18:21 -0400
                Re: Nest sounds nasty Les Cargill <lcargill99@comcast.com> - 2016-04-11 20:41 -0500
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-11 20:27 -0700
                Re: Nest sounds nasty Les Cargill <lcargill99@comcast.com> - 2016-04-12 00:44 -0500
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-11 23:10 -0700
                Re: Nest sounds nasty Les Cargill <lcargill99@comcast.com> - 2016-04-12 19:38 -0500
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-12 23:03 -0700
                Re: Nest sounds nasty Les Cargill <lcargill99@comcast.com> - 2016-04-13 22:24 -0500
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-13 22:43 -0700
                Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-12 09:43 +0100
                Re: Nest sounds nasty DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-12 05:13 -0400
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-12 03:38 -0700
                Re: Nest sounds nasty Les Cargill <lcargill99@comcast.com> - 2016-04-12 19:47 -0500
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-12 19:03 -0700
                Re: Nest sounds nasty Les Cargill <lcargill99@comcast.com> - 2016-04-13 22:30 -0500
                Re: Nest sounds nasty Les Cargill <lcargill99@comcast.com> - 2016-04-12 19:42 -0500
                Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-13 03:04 +0100
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-12 19:16 -0700
                Re: Nest sounds nasty dagmargoodboat@yahoo.com - 2016-04-13 19:43 -0700
                Re: Nest sounds nasty legg <legg@nospam.magma.ca> - 2016-04-14 00:40 -0500
                Re: Nest sounds nasty dagmargoodboat@yahoo.com - 2016-04-10 10:37 -0700
                Re: Nest sounds nasty Jeff Liebermann <jeffl@cruzio.com> - 2016-04-10 12:16 -0700
                Re: Nest sounds nasty dagmargoodboat@yahoo.com - 2016-04-13 19:37 -0700
                Re: Nest sounds nasty bill.sloman@ieee.org - 2016-04-13 22:39 -0700
          Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-08 09:10 +0100
            Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-10 16:40 -0700
        Re: Nest sounds nasty Jasen Betts <jasen@xnet.co.nz> - 2016-04-09 04:59 +0000
          Re: Nest sounds nasty Jeff Liebermann <jeffl@cruzio.com> - 2016-04-09 10:47 -0700
      Re: Nest sounds nasty Jon Elson <jmelson@wustl.edu> - 2016-04-08 14:18 -0500
        Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-08 12:25 -0700
  Re: Nest sounds nasty bitrex <bitrex@de.lete.earthlink.net> - 2016-04-07 14:46 -0400
    Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-07 12:36 -0700
    Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-07 13:45 -0700
      Re: Nest sounds nasty Nobody <nobody@nowhere.invalid> - 2016-04-08 04:39 +0100
        Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-07 20:49 -0700
          Re: Nest sounds nasty Jeff Liebermann <jeffl@cruzio.com> - 2016-04-07 22:00 -0700
            Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-07 23:14 -0700
          Re: Nest sounds nasty Nobody <nobody@nowhere.invalid> - 2016-04-09 06:52 +0100
            Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 00:17 -0700
              Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-09 09:09 +0100
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 02:16 -0700
                Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-09 11:04 +0100
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 08:48 -0700
                Re: Nest sounds nasty Jasen Betts <jasen@xnet.co.nz> - 2016-04-10 04:17 +0000
                Re: Nest sounds nasty Jasen Betts <jasen@xnet.co.nz> - 2016-04-09 21:38 +0000
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-10 16:55 -0700
                Re: Nest sounds nasty Jasen Betts <jasen@xnet.co.nz> - 2016-04-09 21:22 +0000
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 14:42 -0700
                Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-09 23:27 +0100
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 17:31 -0700
                Re: Nest sounds nasty Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-04-10 10:57 +0100
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-10 09:17 -0700
              Re: Nest sounds nasty Nobody <nobody@nowhere.invalid> - 2016-04-10 06:09 +0100
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 22:47 -0700
            Re: Nest sounds nasty DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-09 03:39 -0400
            Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-09 08:29 -0700
              Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 09:02 -0700
                Re: Nest sounds nasty Phil Hobbs <pcdhobbs@gmail.com> - 2016-04-09 10:15 -0700
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 10:46 -0700
                Re: Nest sounds nasty Jasen Betts <jasen@xnet.co.nz> - 2016-04-10 04:33 +0000
                Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-09 10:36 -0700
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 12:18 -0700
                Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-09 13:00 -0700
                Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-09 13:23 -0700
                Re: Nest sounds nasty John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-09 16:58 -0700
              Re: Nest sounds nasty Jasen Betts <jasen@xnet.co.nz> - 2016-04-10 04:20 +0000
  Re: Nest sounds nasty hondgm@yahoo.com - 2016-04-12 12:50 -0700
    Re: Nest sounds nasty Don Y <blockedofcourse@foo.invalid> - 2016-04-12 19:22 -0700

csiph-web