Showing posts sorted by date for query encryption. Sort by relevance Show all posts
Showing posts sorted by date for query encryption. Sort by relevance Show all posts

Thursday, February 26, 2026

US Space Force grounds ULA's Vulcan

In the least surprising story in a while, the US Space Force has halted all National Security missions slated for ULA's Vulcan rocket for the foreseeable future due to the solid rocket booster failure that occurred in the February 12 launch of the fourth Vulcan mission. Out of the four missions, two have been affected by what appears to be the same sort of failure if not identical failures.

Although the failure dramatically changed the magnitude and the direction of the Solid Rocket Booster's (SRB's) thrust, the control systems controlling the rocket were able to compensate for that change to get the mission's payloads to their respective proper orbits. Nobody approaches 100% confident that will always work out positively if more SRBs have the same sort of nozzle failure.

"This is going to be a many-months process as we work through the exact technical issue that happened and the corrective actions we need to make sure, we need to take, to make sure this doesn’t happen again," Space Force Col. Eric Zarybnisky said during a media round robin during the Air Force Association’s Warfare Symposium on Feb. 25, as reported by Breaking Defense.
...
“We are going to work through this anomaly until we launch again on Vulcan,” Zarybnisky told reporters ... "Until this anomaly is solved we will not be launching Vulcan missions."

On February 12, ULA's Vulcan rocket climbs towards orbit in a shower of sparks from its solid rocket booster. Image: Michael Cain/Spaceflight Now.

While the focus on national security missions is easy to grasp, an important application that's covered by the phrase may not come immediately to your mind: Space Force is responsible for the GPS constellation, a utility that touches nearly everyone, and the stewards of the satellite navigation network are eager to populate the fleet with the latest and greatest spacecraft.

Aside from routine replacement of GPS Satellites as they age and start to degrade there's more to consider. 

Another motivation is to replace the oldest active GPS satellites, some of which have been in space since the late 1990s, with newer satellites better suited for the modern world. Beginning in 2005, the military has deployed GPS spacecraft with additional civilian signals for aviation and interoperability with Europe’s Galileo navigation satellites. At the same time, the military introduced a new military-grade signal called M-code, designed for warfare.

M-code is more resistant to jamming, and its encryption makes it more difficult to spoof, a kind of attack that makes receivers trust fake navigation signals over real ones. The upgrade also allows the military to deny an adversary access to GPS during conflict, while maintaining the ability for US and allied forces to use M-code. 

Interference with GPS satellites is on the rise, particularly in the trouble spots that have probably popped into your mind already. Russia and Ukraine, for example, are the easy ones, but the middle east and rest of the eastern Mediterranean are trouble spots, as well. 

Recent high-profile examples of GPS interference include an incident in 2024 that resulted in a fatal airline crash, killing 38 people. The International Air Transport Association reported a 500 percent increase in GPS spoofing incidents in 2024.

For these reasons, the Space Force is prioritizing the launch of new GPS satellites better equipped to repel all of this jamming and spoofing. Currently, 26 of the 31 operational GPS satellites carry M-code capability, enough for global coverage with little margin. But just 19 of the 31 satellites broadcast the higher-power civilian L5 signal, which is more resistant to interference than the civilian signals onboard satellites launched before 2010.

The loss of ULA as a launch provider is going to affect the ability to get GPS satellites into orbit. It's also not a new problem. 

In a little more than a year, the Space Force has launched three GPS satellites in relatively quick succession on SpaceX Falcon 9 rockets. All three were originally booked to launch on ULA’s Vulcan rocket. The first of these three newest GPS satellites, manufactured by Lockheed Martin, was declared complete and ready for launch in August 2021. Three years later, with ULA’s Vulcan rocket still not ready, the Space Force decided to switch it to a SpaceX launcher. 

In addition to the GPS satellites, there are more and different Vulcan military launches scheduled for this year. All of their statuses are unclear. One that's particularly notable is a missile-warning satellite, which is one of the Space Force’s most expensive satellites ever, at over $4 billion. It was supposed to launch on a Vulcan rocket in the coming months and be parked in geosynchronous orbit to detect the heat plumes of ballistic and hypersonic missiles.

Switching over to a Falcon 9 is simple for the GPS satellites because they've already done the hard part, developing the interface between the satellite and booster. For payloads like this missile-warning sat., unless it has a common interface with other payloads, they'll have to develop that. 



Thursday, March 25, 2021

It's Time for That Cliche' Again - Reasonable Gun Laws

Here we are two months into the administration of Jo and the Ho and - whaddya know? - they suddenly have justifications for those gun control moves they talked about for the entire year of the Evil Party primaries.  It's a miracle of miracles!  Suddenly, after many quiet months, we have a group murder of "sex workers" at a "massage parlor" and a group murder in a food store by either a sufferer of Sudden Jihad Syndrome or simply the common Muslim hatred of Jews.  

Since no one on the left seems to be capable of an original thought, it's time for them to trot out the old trope of "reasonable gun laws."  And since I've written about that term and my views of it at least a dozen times, I'll take my privilege of having the pilot's seat and reprint some of the things I've written since 2010. 

Are you as sick as I am of hearing the phrase "reasonable gun laws?"  It's not just in the last few days, it's always there to some degree.  I'm sick of explaining there is no such thing as a gun show loophole; there are no laws that don't apply at gun shows or to internet sales.  I'm tired of explaining that we already have background checks on all new guns, we don't do them on private sales because it's an individual selling their own property and the Federal Government doesn't seem to get involved in private sales of private property.  States do; if I sell a car, boat or whatever, I have to do a bill of sales and the buyer pays sales tax.  I know of no place where the Fed.gov does that.  I'm really sick of the "why does anyone need (fill in the blank)??" nonsense that we hear from an alarming number of people who are nominally on our side.  The ones called Fudds.  Why does anyone need 42 guns?  Why does anyone need 30 round magazines?  I want to ask why does anyone need 42 books? That's also a constitutionally protected right.  Why does anyone need a TV in every room, or a muscle car or you name it.  BFYTW!  It's None of Your F**king Business.

What would constitute real "reasonable gun laws?"  Let's start here: any adult with normal rights can walk into a sporting goods store in most places and walk out with a shotgun or a rifle with no waiting period.  But if they wanted to buy an AR-15 or a Mossberg 500 from the factory or from a store in another city, (like I've done) why does it have to go through a local FFL's hands?  Why can't anyone order a rifle or shotgun from a gun store in another city, their favorite Big Outdoor Store, or even an Amazon.com kind of "online superstore", and have the gun shipped to their house?  It was sold by an FFL that can do the NICS check, so why does another FFL have to get involved?  It used to be that way, until the Gun Control Act of '68.  What advantage is there to society from shipping it to an FFL?  It's not like the second FFL prevents someone from stealing it in transit - that's on the shipping company.  It does nothing but give money to local FFL holders. All they can do is look at the buyer's ID - which can be done digitally with encryption when the purchase is made. 

We all know there's no such thing as a "gun show" loophole, and that you can't just order something online from a gun store. I say, "why the hell not?"  It's the freaking 21st Century, for God's sake.  We have the technology.

In consumer goods, your local camera shop, say, really does have to compete with the big guys in New York. Gun shops don't have that. I can see how local gun shops might really like these laws. They get an easy 35 bucks (or whatever) for filling out the forms and "receiving" the shipment, but I don't see any value added to us or society.  There was certainly no value added to me.

If there's a mandatory 3 or 5 day waiting period for a handgun where you live (Florida waives that for Concealed Carry licensees), why can't you order handguns online?  What's the difference between waiting 3 or 5 days for UPS to deliver it and waiting 3 or 5 days to pick it up at your gun store?  Again, with today's computer security, you could verify age, do a NICS check - anything the local shop can do - online.  I think the waiting periods are all bullsh*t anyway, just another way for government to yank our chains and make it harder than it ought to be.  I've never seen any data that waiting periods have ever done anything except inconvenience legal purchasers.  But, fine, we'll play your infantile waiting game. 

The whole idea of a wait was a "cooling off" period, so that a hothead doesn't go buy a gun in a moment of anger and then go kill someone, but I personally have never seen data that those waiting periods do anything.  I know they started with the GCA of '68 ban on Saturday Night Specials, which (as far as I can tell) only had the effect of removing cheap, reasonably functional guns from people who couldn't afford better ones, and caused some smaller arms companies to either fold or change their product line.  Another government penalty on the poor.

What possible arguments are there against this?  That we can't guarantee security, we can't guarantee that criminals won't order guns online?  Nobody can guarantee security.  Criminals don't have any problems getting guns now while staying out of the system entirely.  If we use strong security, it's as good as what we have.  One time I posted something like this and a commenter said,  "what if your kids used your ID?"  I wouldn't want my kids buying anything under my ID on my computer.  If you can't control your own kids in your own house, I think that's a bigger problem than just what they're buying.  Maybe you should be making sure they don't know the combination to your safe and don't know where to find matches. 

Why are silencers - glorified mufflers - regulated as if they were machine guns?  Why are we required to have a muffler on a car, motorcycle or lawn mower, but we're required to not have one on a gun?  This was originally to keep people from shooting the King's deer (poaching game), but I think the problem today is Hollywood.  They created this illusion that a silencer reduces the 155 to 160 dB of a gun shot down to a barely audible, and it just isn't so.  Silencers should be completely deregulated - not even the $5 "any other weapon" class - just over the counter at your local store.  Did you know that there's nothing like an 80% lower in the construction of a silencer; no stage that's legal?  If I have a lathe (like I do) and they find pieces that someone thinks could someday become a silencer, I've broken the law.  The ban is total. 

This one actually is for the children.  And for anyone who moves next door to gun ranges or clubs and gets disturbed by the sounds.

Get rid of the stupid “sporting purpose” tests for firearms. The Heller decision makes it very clear that the Second Amendment isn’t about duck hunting. This particularly affects imports. No restrictions. Get rid of the stupid laws on short barreled rifles and shotguns. The idea that a shotgun barrel 18.05" long is fine, but one that's 17.95" is some sort of killer monster weapon is just silly. It's there simply to create law violators. It's also one of their most enforced laws - probably because it's really easy to measure barrel length.

The last time I did some looking at John Lott's data, his studies had been peer reviewed 30 times and never refuted.  There was one author who said Lott couldn't prove "More Guns Equals Less Crime"; but neither could he (the reviewer) disprove it.  Lump this one under the rule for reading medical studies: correlation does not equal causation.  However, and this is important, there can't be causation without correlation.  When you look at global rates of gun ownership vs homicides, there's almost a perfect lack of correlation, almost perfect inverse relationship between the number of guns in private hands and murder rate, across the globe.  More guns can NOT equal more murders. 


This is fairly old - the closest I can tell is that it dates from early 2013. 



Friday, September 18, 2020

A Ham Radio Series 14 – The Self-Policing Aspect of Ham Radio

After my last post on radio, an anonymous comment complained that something they’d like to see available in the ham universe isn’t there, and thought it was because hams are eager to report anyone who uses illegal technology so that the offenders can be loaded onto the trains to some metaphorical Auschwitz-style camp. 

The communication security situation doesn't appear to have changed since the seven year old post. Nobody will openly build a crypto add-on gadget, because too many hams will spend too much effort snitching on them. Hams won't quite push you into the ovens with their very own hands, but they will alert the enforcers if you try to get out of the line to the ovens.

I think this is missing the point entirely, but that's easy for an outsider to do.  Could it be they don't want to send you off to the ovens, they’re just trying to protect the ham bands?  Or someone might not talk about what they’re experimenting with because they don't want to get fined or their license revoked?  Remember, we're not talking BLM or antifa here, normal hams can get fines.  Better to not talk about the crypto system than draw attention to themselves.  The ham bands aren’t full of whacked-out haters looking to get rid of everybody else, but hams are very accustomed to people using the bands without a license or not following the band plans, causing interference problems.  

For as long as I can remember, hams have been trying to keep other users out of the ham bands.   Go listen to the bottom 100 kHz of 10 meters; if propagation is open you'll hear fishing boats chatting, mostly in Spanish.  Before the fishermen, it was “sliders” that would come into the 10m band - sliders were CBers whose radios had VFOs and weren't just channelized only for the Citizen's Band.  If you hear anyone talking between 28.000 and 28.100 they’re not supposed to be there – it’s allocated for CW and narrowband data pretty much worldwide.  Having all communications unencrypted makes the jobs of both the FCC and the ARRL Volunteer Monitors (formerly the Official Observers, OO) easier, among other things.  Prohibiting encryption makes it practical to understand everyone on the bands so both the FCC and the other hams know the stations they’re monitoring aren’t using the frequencies without a license.   

If you create a voice scrambler, it’s going to sound noise-like, but in a narrowband signal (so the radio can handle it).  That will stand out like a sore thumb.  Hams will start looking for it expecting it to be some sort of Cable TV (data) leakage or some piece of equipment that’s broken.  They’ll especially go looking for the signal with direction finding equipment if it’s tying up a repeater or popular frequency.  Interference from other services or broken equipment happens all the time.  

Hams are self-policing because the spectrum auctions the FCC has held prove that spectrum is worth real money to companies and there's a widespread feeling that if we become more of a pain than we're worth, the FCC will sell the spectrum to some other entity.  Or the cities/counties/states who rely on ham radio for disaster communications will do their best to direct the FCC enforcement group to the person violating rules.  

It’s a self-consistent system that makes sense.  The FCC allocates portions of spectrum to different services, and virtually all services pay fees for that access.  If nothing else, they pay for their license.  The regulatory agency needs to know if everyone is playing nice.  More important than that, they need to know whom to contact to shut down a station when that station is is putting a transmitter spurious product on some important frequency like 121.500 MHz: the aviation emergency frequency.  By its nature, radio doesn’t respect borders, so interference between states (and across borders) is routine.

Now you can argue that the old way of allocating frequencies is outdated in the age of frequency-agile radios and should be scrapped.  Everyone with every type of license could use the entire 2 to 30 MHz HF band, for example.  I don’t see how that could work with many of the services they regulate, but let’s say the FCC does this.  The problem is the whole world uses frequency allocations by service like the US does and having services on known bands, similar all over the world, makes interoperation between countries more feasible.  Changing this worldwide would obsolete every radio on earth, from shortwave listeners, to marine radios, to aircraft to physical therapy machines.  If you want to change spectrum allocations for the entire world, remember big wheels turn slowly and there are no bigger wheels than all the governments of the world.  

It may be that your desired invention is out there, but nobody talks about it because they don't want to be targeted by FCC enforcement.

If you want to do those experiments though, I'll tell you what to do.  Go up above 1 GHz where the bands are big and spread out, and do your experiments up there.  They’re lightly used in much of the nation, so you can experiment to your heart’s desire.  Thanks to a combination of technical reasons, your chances of being monitored are minuscule.  If you want an HT to play with, they exist for the 1.2 GHz band, the most heavily used of all the microwave bands, with the possible exception of 2.4 GHz where ham allocations overlap the WiFi band.  In current production I see the Alinco DJ-G7T. There are other, older models out there in the used market.  

It goes without saying to avoid repeater channels, which make it easier to be heard over bigger areas.  You can look on one of the repeater directory websites (or buy a book) to see if there are any 1.2 GHz repeaters in your area and avoid those.

You might want to go higher than 1.2 GHz.  There are ham hacks to some WiFi routers.  While that's a crowded band, you might not attract as much attention if your spectrum and coding aren’t exactly the same as everyone else.  Up at 10 GHz there are no HTs but commercially made gear is available.

At 10 GHz, normal frequency uncertainties make finding anyone to talk with difficult.  A 1/2 part per million TCXO, those are good for ham gear but used to be rather expensive, puts two people as much as 5 kHz apart at 10 GHz.  If both are on SSB, they might never hear each other.  It's a good place to experiment because being randomly overheard isn't the issue most hams have on 10 GHz; they have a hard enough time hearing someone who they aren't working hard to set up a contact with.

Once you get the hardware and software working, you can move it to any band it fits in.  

In the early days, the ARRL monitors - the Official Observers - were advertised as our friends.  They tune the band listening for signals with problems and let you know if your signal was one.  This cartoon emphasized that if you had something wrong with your station, it would be better to get a note from your OO instead of the pink slip from an FCC monitor.



Wednesday, August 14, 2019

Starting to Look at 5G Cellular

In the academic sense, I'm not physically looking at a 5G link.  Smallville here will probably not get 5G for years and years.  I don't even get a particularly good 4G/LTE signal here at home.  Still, I hear the buzz and it makes me want to understand what the story is.

There's lots of buzz about 5G for the new technologies it's going to bring, but those largely come down to higher bandwidths and faster downloads for the users.  Numbers like 10 Gigabits/second get thrown around - orders of magnitude faster than 4G.  To the network providers, the attraction is that the number of subscriber devices they can support (sell) jumps up dramatically.  Just as 4G is faster than 3G was and every generation before it.  Despite the fact that 5G services won't roll out anywhere until - maybe - the end of calendar 2019, the buzz seems to center on the idea that whoever controls the networks will know everything about every business and every person in the country.  Why wait?  Avoid the rush and just get one of those "OK Google" or Alexa monitors to bug your own house now.  This security seems more like an encryption issue rather than whose base station it goes to.  No, I don't trust Huawei and the Chinese, but I don't trust the US either. 

That part about security comes from what's actually a completely unrelated technology to 5G, the drive to use internet connectivity to improve services of all kinds, call the Internet of Things, usually referred to as the IOT, or (as I like to call it) the Internet of Things That Just Don't Quite Work Right (IOTTJDQWR - which doesn't quite roll off the tongue as easily).  The IOT and it's cousin, the Industrial IOT, will do simple things like put water pumps, flood gates, and all sorts of civic and utility infrastructure on the net.  The vast majority of these things are not high bandwidth users and don't need the faster data rates that 5G promises, although the lower latency/faster network might be useful.  They could be done today, and many are done over industrial radio links. 

The promise of higher data rates brings the inevitable trade that higher rates usually require higher bandwidths and higher bandwidths usually require higher operating frequencies.  This also scares a lot of people.  Back to that in a minute, but first, let me show you a list of frequencies that 5G can use - not all of these will be in any particular device.  The list is from a document from Keysight, the former Hewlett Packard test equipment group, and still arguably the industry leader in this sort of test equipment. 


It's a bit of an eye chart if you don't enlarge it, but two things to notice are that the new frequencies are all printed in a greenish/teal sort of color; and that frequencies currently used for other purposes that have been reassigned for 5G (or dual purpose, it's not completely clear) are in purple.  Those in black, in the second vertical block, remain for LTE of various flavors.  The only new frequencies capable of high bandwidth, that are higher than the existing LTE services (virtually all below 3 Gigahertz - 3 GHz) are in the top right block and are in a few bands from 24 to 40 GHz.  Why not 60 GHz, where WiGig is currently all alone?  This chart shows why:

This shows the attenuation (loss of signal) due to dry air (in red), water vapor (blue) or the sum of the two losses (in black). You will see a huge peak of attenuation centered right on 60 GHz, going from around 0.3 dB/kilometer up to (guessing) 15 dB.  That means a transmitter on that peak has to put out almost 16 dB more power, or 40 times more power, than the lower frequency transmitter.  That huge a power difference means much more expensive hardware.  It turns out that dip in attenuation you see between the huge peak at 60 and the much smaller peak at about 22 GHz covers the 24 to 40 GHz range for the 5G signals. 

One thing that people don't seem to understand is that it's hard to get radio frequency energy into places you want it.  Even in a controlled, lab environment, on well designed hardware, we regularly fight to get thousandths of a watt that we expect to get but that nature just doesn't want to give up.  Furthermore, the higher the frequency, the more struggles that come. 

In the case of the 5G network, those struggles will be because the signals don't penetrate walls and other things as well as the lower 4G frequencies do.  It's going to call for more towers more closely spaced and fancier antennas.  The buzzword is MIMO - Multiple Input Multiple Output - it's a way of combining antennas to get better performance out of the network.  If you have a WiFi router with two or more antennas on it, you have that now. 

Is 5G going to be dangerous for people carrying handsets or walking around the city?  The power density requirement in FCC-OET Bulletin 56 is the same as for frequencies we've talked about here before, 1 milliwatt per square centimeter.  Industry is experienced with designing for these levels and I don't see any reason why it should be any more dangerous than existing networks.  If anything, because 24 to 40 GHz doesn't penetrate as well as lower frequencies, it might be safer.

I've written many times on RF safety and can do so again.



Tuesday, January 5, 2016

In Honor of Bozo's "Reasonable Gun Laws"

A repost of my version of reasonable gun laws.  I've written on this topic before and part of this will come from two posts: here and here, along with some new thoughts.

Let's start here: any adult with normal rights can walk into a sporting goods store in most places and walk out with a shotgun or a rifle with no waiting period.  But if they wanted to buy an AR-15 or a Mossberg 500 from the factory or from a store in another city, why does it have to go through a local FFL's hands? Why can't anyone order a rifle or shotgun from an online gun store, their favorite Big Outdoor Store, or even an Amazon.com kind of "online superstore", and have the gun shipped to their house?  It was sold by an FFL that did the NICS check, so why does another one have to get involved?  It used to be that way, until the GCA of '68.  What advantage is there to society from shipping it to an FFL?  It's not like the second FFL prevents someone from stealing it in transit - that's on the shipping company.  It does nothing but give money to local FFL holders. All they can do is look at the buyer's ID - which can be done digitally with encryption when the purchase is made. 

We all know there's no such thing as a "gun show" loophole, and that you can't just order something online from a gun store. I say, "why the hell not?"  It's freaking 2016, for God's sake.  We have the technology.

This is the opposite of the current drive to make every sale of every used firearm go through an FFL, like Obama is pushing for in today's EOs.  I think the whole FFL system is obsolete, a remnant of the way things worked in the 1930s, and does nothing that couldn't be achieved in other ways.  All it does is keep FFLs and Fed.gov worker drones employed - which seems to be the point.  I want our side to push back on the whole system.  If FFLs and these gun laws mattered, they'd prosecute people for violating them! 

We should push for, at the Federal level, complete concealed carry reciprocity across the country.  Those places that still deny the human right to self defense need to be dragged, kicking and screaming into the modern age. I'd prefer reciprocity for both open and concealed carry, although you know that would be a hard sell to every Evil Party senator and representative.  Heck, we have a hard enough time getting it passed in Florida with the treacherous Stupid party politicos, who are nominally on our side. 

There's also a silly hodgepodge of waiting periods for a handgun.  In some places it's 3 days, in others, 5 days.  Here in Florida it's state law to eliminate the wait if you hold a concealed carry permit.  If there's a waiting period, why can't you order a pistol from Bud's (for example) and wait 3 or 4 days for UPS to deliver it? Again, you'd fill out the background check with the FFL who's shipping it, why does it need to go to another FFL?  With today's computer security, you could verify age, do a NICS check - anything the local shop can do - online. The whole idea of a wait was a "cooling off" period, so that a hothead doesn't go buy a gun in a moment of anger and then go kill someone, but I personally have a hard time believing there were large numbers of that sort of crime anyway.  It's an extension of the ban on Saturday Night Specials, which (as far as I can tell) only had the effect of removing cheap, reasonably functional guns from people who couldn't afford better ones, and caused some smaller arms companies to either fold or change their product line.  Another government penalty on the poor.  But, fine, we'll play your infantile waiting game -- now how does waiting 3 days to pick up a gun in your city differ from waiting 3 days to get it delivered by UPS or FedEx?

Why are silencers - glorified mufflers - regulated as if they were machine guns?  Why are we required to have a muffler on a car, motorcycle or lawn mower, but we're required to not have one on a gun?  This was originally to keep people from shooting the King's deer (poaching game), but I think the problem today is Hollywood.  They created this illusion that a silencer reduces the 155 to 160 dB of a gun shot down to a barely audible, and it just isn't so.  Silencers should be completely deregulated - not even the $5 "any other weapon" class - just over the counter at your local store.  Did you know that there's nothing like an 80% lower in the construction of a silencer; no stage that's legal?  If I have a lathe (like I do) and they find pieces that someone thinks could someday become a silencer, I've broken the law.  The ban is total. 

This one actually is for the children.  And for anyone who moves next door to gun ranges or clubs and gets disturbed by the sounds. 

We should eliminate postal restrictions against mailing of firearms. We can ship them via UPS, or FedEx, why not USPS?  Don't they need every penny of revenue they can get?

Get rid of the stupid “sporting purpose” tests for firearms. The Heller decision makes it very clear that the Second Amendment isn’t about duck hunting. This particularly affects imports.  No restrictions.  

Get rid of the stupid laws on short barreled rifles and shotguns.  The idea that a shotgun barrel 18.05" long is fine, but one that's 17.95" is some sort of killer monster weapon is just silly.  It's there simply to create law violators.  It's also one of their most enforced laws - probably because it's really easy to measure barrel length.

The last time I did some looking at John Lott's data, his studies had been peer reviewed 30 times and never refuted.  There was one author who said Lott couldn't prove "More Guns Equals Less Crime"; but neither could he (the reviewer) disprove it.  Lump this one under the rule for reading medical studies: correlation does not equal causation.  However, and this is important, there can't be causation without correlation.  When you look at global rates of gun ownership vs homicides, there's almost a perfect inverse relationship between the number of guns in private hands and murder rate, across the globe. 
While cross-cultural studies have their troubles, and some countries are only classed as countries in the loosest sense of the word, in most cases the countries with the most gun ownership had the least homicide. 


Sunday, August 16, 2015

The Least Secure Voting Machines in the US

And possibly the world.

H/T to Yahoo! Tech for the story.  As usual, the problem is government.  In particular, after the "Hanging Chad" election in 2000, the congress passed the Help America Vote Act of 2002. Among other things, the Act banned punched-card and mechanical-lever voting machines.  This led to the inevitable gold rush to suck up that gubmint money by producing voting machines.  And just as the War on Some Drugs money has always been spent so wisely; like the Quadro Tracker, the $1000 empty box with a 'diving rod' on it, so was spent the Help America Vote money.  As I've said before, the Fed.Gov dribbles money like a toddler dripping turds out of its Pampers, and this always attracts companies ready to suck up the gubmint droppings.
Outside of Virginia, only a few counties in Pennsylvania and Mississippi adopted Winvote (from the now-defunct Frisco, Tex.-based Advanced Voting Systems). But Winvote terminals had much in common with other electronic voting machines of that time: They were built to win government contracts. And they were based on general-purpose Windows platforms that made them needlessly complex and vulnerable to exploits.
Winvote fulfilled its purpose, to suck up money, and quite possibly delivered the least secure systems ever.  
Jeremy Epstein, a security scientist with SRI International, has spent years investigating the weaknesses of these and other electronic voting systems. But even he didn’t know how bad Winvote terminals were until this past April. 

That’s when the Virginia Information Technologies Agency condemned the security of these machines and banned them from the commonwealth. Their only remaining use was, literally, as a lesson to others.
Switching to Epstein's summary for a moment:
If an election was held using the AVS WinVote, and it wasn’t hacked, it was only because no one tried. The vulnerabilities were so severe, and so trivial to exploit, that anyone with even a modicum of training could have succeeded. They didn’t need to be in the polling place – within a few hundred feet (e.g., in the parking lot) is easy, and within a half mile with a rudimentary antenna built using a Pringles can. Further, there are no logs or other records that would indicate if such a thing ever happened, so if an election was hacked any time in the past, we will never know.
How bad was it?  How about the shiny key to lock the machine?  Epstein reports “All the keys are the same for every Winvote that’s ever been made, because that way it’s easier,”
• Winvote’s machine runs a version of Windows XP that hasn’t had patches installed since 2004 — four years before AVS deservedly went out of business.
• Its wireless network is “safeguarded” with insecure WEP encryption — and the password is abcde. (and that was unchangeable)
• The Windows admin password is (no, I’m not making this up) admin. (and that seemed unchangeable as well)
• Windows file-sharing is left on.
• The machine tracks votes using an obsolete version of Microsoft Access, in which the unencrypted database file is “protected” with a five-character password that a security tool cracked in seconds. (That password — shoup — apparently refers to a voting-machine company with a history of criminal indictments.)
• The system doesn’t log changes to that file.
• You can’t turn off the WiFi; if you remove the wireless card, the device won’t boot.
As the saying goes, security wasn't an afterthought; it was never thought of at all.     

It's hard to say just what the worst part of this situation is, but possibly it's (as mentioned a few paragraphs ago), "if an election was hacked any time in the past, we will never know."  Possibly the worst part is that this might not be unique to Winvote machines at all.  In fact, Diebold wasn't much better. 

Technology moves quickly, as I don't have to tell you.  Governments don't - they're the second slowest institutions to change in the world.  We've got to get smarter about electronic voting machines.  The county I'm in has you enter votes on a sheet of paper and tallies them optically, the way standardized tests are graded.  Those are only "hacker proof" if they're off a network and handled carefully.  But, just as they say the hackers are winning attacks on the financial institutions because there's so much money at stake, the amount of money and power at stake here dwarfs anything in the banks. 

(A Winvote key and administrator's card)


Tuesday, February 10, 2015

Techy Tuesday - When Your TV Watches You

For some reason, I haven't been able to shake an image of Yakov Smirnoff saying, "In Soviet Russia, TV watches you!" since I first saw the stories about the Samsung Smart TV.   In case you missed it, buried deep in the disclaimers that virtually nobody reads anyway is this rather alarming little statement.
Please be aware that if your spoken words include personal or other sensitive information, that information will be among the data captured and transmitted to a third party through your use of Voice Recognition.
Whut?  I need to watch what I say in my own house?  I can't talk about "personal or other sensitive" things in my own living room?  And how many people have a TV in their bedroom? Does it have cameras to watch me - so it will recognize faces and which programs they like?

I'm going to go out on a limb here and assume most people know Apple's Siri "digital assistant".  To invoke Siri, you need to take a positive action.  The default is to press a large button and hold it until you get a tone that acknowledges the app is now running.  Now Siri doesn't live entirely on the iPhone.  Once you've engaged the app and asked a question, Siri can connect with servers online to help interpret your speech.  Still, if you don't press the button, Siri never turns on and never listens. 

Samsung's TV is the opposite of that.  Their usage model centers on you speaking commands to the TV.  If you're just going to command it, speaking in your best Jean Luc Picard voice, "TV, change to channel 1035", it has to be listening all the time.  It has to actually be continuously parsing what everyone it can hear is saying and deciding if it's a command or not.  If you yell "turn off that noise" to your kids in the other room, it has to decide what that means, and whether or not it needs to respond.  Samsung says that the microphone in the TV only responds to simple commands and does not pipe the speech out over the Internet.  

The use of the "third party" to process speech only happens when you press a button on the remote, perhaps asking the TV to recommend a movie (I don't know about you, but I always think about asking my TV what it thinks).  Since you're pressing a button, it is similar to how Siri and Google Now work on smartphones.  No button press; no threat of eavesdropping.  Says Samsung.  Users will see a microphone icon on the screen when it is on.  Samsung says it's easy to cope with this if you don't want a voice activated TV (then why did you buy one?) by going into the Settings and disabling it.  Then they say,
"While Samsung will not collect your spoken word, Samsung may still collect associated texts and other usage data so that we can evaluate the performance of the feature and improve it,"
And, of course, if you turn off the voice activation features, those features you paid for aren't going to be working.  I suppose collecting usage data isn't that bad, especially if anonymized.  It's probably data that doesn't cross over into the extremely personal category.

The problem is Samsung really stepped in it.  They put in a bunch of features they thought people will want in a TV and then weren't really up front about sending much of what the TV hears to a remote processor.  When people were upset about it, it was as much how they found out as it was the actual discovery.  Samsung could only say they use "industry-standard security safeguards and practices, including data encryption, to secure consumers’ personal information and prevent unauthorized collection or use", but now it's a question of whether or not you truly believe them. 

Besides, didn't Anthem and Sony and all the other cyber attack victims use "industry-standard security safeguards and practices"?


Sunday, May 18, 2014

When You Need An Envelope - Part II

I originally wrote about TAILS, The Amnesic Incognito Live System, back in November of 2012 when I first started playing around with it.  TAILS is a live OS, a Debian Linux implementation, designed to be a complete, ready to use OS that you can keep on a thumb drive, and which offers anonymity to users.  Back in that post, tails was distributed as version 0.14.  It has been regularly updated since then, and the community finally felt it was ready to release as a "finished" version (as if that ever exists):  TAILS 1.0 was released at the end of April. 

That TAILS page is complete information for getting started, and the download itself is an .iso file, the kind used for either creation of a CD or DVD (from Windoze, as most of us are, use something like ImgBrn to burn the disk).  The TAILS link has instructions and a link to a method of transferring the .iso file to a USB memory stick, or you can do what I do: boot from the CD, and use the built in utility to clone the OS to the USB drive.  I have a 4GB miniature thumb drive (more the size of a thumbnail drive) that holds TAILS and some other files I'd want to bring with it. 

Tails is based on TOR, The Onion Router, and it's helpful to think of the layers of an onion as a model for what TOR does.  It uses hidden layers of routing information, hidden tunnels if you prefer, with messages bouncing around through different routers at all times, to discourage (I'm reluctant to say "defeat") traffic analysis, one of the most common forms of intelligence gathering the three letter agencies use.  TOR helps to reduce the risks of both simple and sophisticated traffic analysis by distributing your transactions over several places on the Internet, so no single point can link you to your destination. The idea is similar to using a twisty, hard-to-follow route in order to throw off somebody who is tailing you — and then periodically erasing your footprints.  In addition to that, TOR negotiates one time encryption keys with other nodes on this network, one hop at a time, and each relay along the way knows only which relay gave it data and which relay it is giving data to. No individual relay ever knows the complete path that a data packet has taken.

All of your actions - web use, emails, anything, are run through anonymizers.  Web searches go through Startpage.  Your address is blocked.  Security is built in from the ground up.  All to keep you anonymous.  The "Amnesic" part in TAILS is because the system forgets everything you've done when you shut it down.  Pull that USB drive and it's deaf, dumb and blind.  What you sacrifice for this security is speed.  Because of all of these hops around the network, TAILS is slower than your regular internet communications.  In a sense, the decision is an old one:  would you rather be fast or invisible?  TAILS' intent is to make users invisible; to allow anonymous communications for people in delicate or deadly situations.  Reporters in conflict zones, NGOs monitoring sensitive areas, and while this will rile some people, the US military has used it.  The most famous use of TAILS (reportedly) was by Edward Snowden.  If anyone made more of the general population aware of TAILS, it was Snowden.  From the TOR overview page.
Groups such as Indymedia recommend Tor for safeguarding their members' online privacy and security. Activist groups like the Electronic Frontier Foundation (EFF) recommend Tor as a mechanism for maintaining civil liberties online. Corporations use Tor as a safe way to conduct competitive analysis, and to protect sensitive procurement patterns from eavesdroppers....

A branch of the U.S. Navy uses Tor for open source intelligence gathering, and one of its teams used Tor while deployed in the Middle East recently. Law enforcement uses Tor for visiting or surveilling web sites without leaving government IP addresses in their web logs, and for security during sting operations.

The variety of people who use Tor is actually part of what makes it so secure. [pdf warning]  Tor hides you among the other users on the network, so the more populous and diverse the user base for Tor is, the more your anonymity will be protected.
All of that is the positive side.  In the dark underside of the internet, groups like sex slave traders, pedophiles, black hat hackers, and criminals of all stripes have been drawn to TOR as a way to obscure themselves.  When that happens, the police, FBI, and other agencies have to follow into the onion to try to keep up with the undesirables.  

How secure is TOR?  More secure than an envelope in the postal system, but not perfect.  One thing the open source community around TOR (and TAILS) is really good at doing, is reviewing attacks on their tools and continually improving them.  Just remember, as my favorite XKCD cartoon above depicts, you don't attack the adversary's strong points, you attack the weak points - and that's what the three letter agencies are doing.  According to a report on Help Net Security this week, Andy Malone, founder of the Cybercrime Security Forum and Microsoft MVP, warns that using Tor does not guarantee the information you're trying to keep hidden won't be compromised.
The security of the Tor network itself has not yet been broken (as far as we know), but Malone says that Tor leaks can occur through third-party apps and add-ons. "If I was doing forensics on you and thought you were on Tor, I wouldn't attack the network I'd attack the weak areas around it," says Malone.

Users should also be aware that the NSA and the GCHQ are installing hundreds of Onion Routers in order to capture and analyze traffic. If they visit the Deep Web, they should also know that among the different websites there are also honeypot ones created (or hijacked and turned into honeypots) by law enforcement agencies to catch criminals.
If you're using TOR because you need to send email that you really don't want to be snooped on, encrypt it!  An envelope within an envelope.  One time pads are mathematically unbreakable if used properly.  If you're running some sort of operation that you don't want tracked, don't use the same computer in the same location all the time.  In other words if you're running a criminal enterprise, don't do it from your living room!  TOR was intended - and works best - for individuals like reporters or operators in a hostile country or war zone trying to get information out.  The kind of people who might use a laptop or tablet in a hotel one night and a public computer somewhere else on another day.   

So add TAILS/TOR to your toolbox, but don't think it's the be-all and end-all of security.  It does some things very well, but it won't solve every problem.


Sunday, September 8, 2013

About That Secure "https"? Yeah... Not So Much

The story broke this weekend that the NSA forced providers to allow backdoor entry into the web based encryption that most online banking and shopping uses, allowing essentially total surveillance of the web.  In case you doubted, they can monitor every bank transaction, every purchase you make, if at any time the transaction goes over the internet.  Apparently, if you walked up to the counter in a store and bought on a credit card, they got the transaction. (I've always assumed this to be the case)  H/T to Denninger, among many, who also has some good comments.  Microsoft, it seems, allowed access to anything it encrypts back to Windoze 95 (I wonder if the monopoly charges and pressure on MS in that time period had anything to do with this?):

How did they get caught?  Someone built one of the service packs without stripping the symbols from the code, and right there where everyone could see it was "_NSAKEY."

Now Microsoft denied that this was in fact what the key was, but what they didn't do was release the source code in question to prove it.  No, they simply "asserted" that one should trust them because, well, they're Microsoft.
Wirecutter follows up with a link to techdirt saying the NSA and GCHQ Admit The Public is the Enemy.  Internal documents, referenced by the Guardian (UK) show the NSA refers to the public as "adversaries". 
Among other things, the program is designed to "insert vulnerabilities into commercial encryption systems". These would be known to the NSA, but to no one else, including ordinary customers, who are tellingly referred to in the document as "adversaries".
That's your government referring to you. Apparently not without some sense of humor, among the code names the NSA used internally for these programs were Manassas and Bull Run, a major battle in the (first?) civil war.  The UK GCHQ used the name Edgehill, the first major engagement of the English civil war, more than 200 years earlier. 
Now you can sweet talk and substitute words like some mealy-mouthed lawyer or government spokesman as long as you'd like.  You can say, as one commenter did, that it's simply NSA-speak that any code they attempt to break is from an adversary, and they don't mean you and I specifically.  This is in the tradition of "it wasn't rape rape": they don't mean adversary adversary.  Except that they do.  The whole program is based on violation of the 4th amendment, monitoring everyone as if they were a suspect in a terrorism case.  

It seems there's only one answer, tear down the agency.  I'm partial to the argument that we need an agency that performs the NSA's original mission - to monitor and, yes, spy beyond the water's edge.  Foreign only.  So we need a massive cancer-like surgery to remove the domestic side of the house while leaving the international side there.  Ain't gonna happen without serious disruption, if ever. 


Monday, April 1, 2013

The Next Frontier in Cryptography

The public key encryption systems that are the basis of GnuPG and PGP are really quite secure.  If you use a 2048 bit key, it's estimated that the time to factor that number with today's computers is 6.4 quadrillion years.  For the moment (don't hold your breath) that's more than six times the size of the US Deficit and unfunded liabilities, expressed in years and not dollars.

Quantum computing is supposed to change that and make it radically easier to break these keys by brute force:
In 1994, while at AT&T Bell Laboratories, mathematician Peter Shor developed a quantum algorithm that can factor large numbers in polynomial time.  Transitioning from classical to quantum computing, Shor's algorithm has the potential to break all of the existing public key schemes used today. 
There are many who believe that all of our modern security systems are in trouble once quantum computers hit.

I'm happy to divulge here a form of quantum cryptography you can perform at home. 

Quantum cryptography depends on the "spooky action at a distance", as Einstein called it, of quantum entanglement.  A pair of particles can't have the same quantum properties, so if you create a pair of photons, keep one and send the other to a remote site, and you know some property of your photon, like its spin, then you know the spin of the other.  Furthermore, you can change the state of your photon and the other one has to change because of entanglement, and the information of the state change has been measured at well over (4x) the speed of light.  If a third party tries to tap into the photons, they change its state letting you know that the data has been compromised. 

All you need to do is to use a pair of quantum tweezers to sort out the photons in small burst of laser light, keeping the ones you want and sending the rest on their way.   Until recently, optical tweezers required a lot of space and expensive equipment, like this:
but thanks to remarkable innovation here, I'm able to offer these photon-based quantum tweezers for the ridiculous price of $19.99. 
These precision quantum tweezers are great for sorting out the photons you want to send, but they are also great for trimming quantum eyebrows or quantum nose hair.  

And if you act now, we'll include this complete set of body armor so that when the bad guys "drug you and hit you with a $5 wrench", you'll be safe.  Free - you just pay shipping and handling of $4995. 
Act now. 


Sunday, March 31, 2013

Contemplating Privacy and Radio Communications 6

Some miscellaneous thoughts:

First off, back a few days ago, an anonymous commenter asked
Do you know of any available resources to build freq hopping and encrypted radios available to the public. It might be a good project to get some of your engineers working on, perhaps using this as a foundation: http://greatscottgadgets.com/hackrf/
All you need is a laptop and the Hackrf USB radio, throw on a GUI that makes signal strength and frequency selection easy, encryption and frequency hop loads, and you've got a military grade radio. 
I haven't kept up with this tech - the last time I saw similar things (and it may have been a dead end on the Internet) it was certainly not military grade, and I wasn't even sure it was Belkin grade.  That is, I'm not sure it was as good as commercial WiFi you can buy anywhere pretty cheaply.  I can't say I'm an expert at this, having just looked it over, but this is not a usable radio; it's a digital board that allows you to experiment with software defined radios (SDRs).   The HackRF page on Ars Electronica says
There are relatively few people in the world with the knowledge and tools required to develop new radio communications hardware, but there are many millions of people who have the ability to program a computer. General purpose computers are widely deployed, and opportunities to learn how to program them are available to a huge number of people.  HackRF gives all of those people the capability to explore the radio spectrum and develop creative new ways to communicate.
The difference is that HackRF doesn't seem to have any receiver sophistication and only a very low power transmitter stage that I can see.  I freely admit I could be wrong, but the block diagram sure doesn't show anything.  One of the paradoxes of SDRs is that they don't eliminate the need for filters; if anything, they become more important due to the aliases they respond to.  He describes it as combining "Licorice, Lemondrop, and Jellybean into a single USB-powered software radio".  Maybe I'm searching in all the wrong places, but a few searches with Bing retrieve nothing on them.  I don't think this is a GUI away from being useful, but hey!, prove me wrong!

SDRs for experimenters are not new at all.  Hams play with SoftRock, (also) a low power CW transceiver (Continuous Wave, the name hams tend to use for Morse code communications) that plugs into a USB port and a sound card.  These guys produce an HF SDR, transmit and receive, that is architecturally very similar to one I recently completed for a commercial design (naturally, I prefer the design trade choices that I made over theirs).  RFSpace has a product line of SDR receivers.   FlexRadio is a staple in the ham world; their SDRs are considered among the finest radios on the market. 

I recommend getting an amateur radio license because it brings with it the privileges to experiment with new modes and new technologies all on your own.  You can buy an FRS radio to talk to someone, but if you're a ham, you can invent your own mode with an outwardly similar radio, because you're expected to understand the technical requirements.  The technician class license conveys all amateur privileges above 30 MHz, plus it gives holders some privileges in the HF spectrum (high frequency or shortwave - capable of worldwide communication).  The American Radio Relay League is the dedicated organization that is closest to a "universal American ham club", although like the NRA, the ARRL is often criticized by non-member hams (well, not as often as the NRA).  If you want a completely non-official page, this guy seems pretty good.  

If you want to experiment with modes that require more than audio bandwidth, you need to be above 30 MHz, and you're going to need to experiment with radios (or have someone in your group that knows radio design).  Simply, most amateur gear is either surplus commercial gear or designed from the ground up for the narrowband modes that dominate.  Except for TV - hams have done regular TV at 400 MHz and above and are now doing digital TV.  A few months ago, I met hams who were buying surplus video equipment at WiFi frequencies and above.  They were playing with extending it out to long distances, and had made WiFi connections at 125 miles.  There is a ham band that overlaps the band allocated to WiFi, so the surplus gear is being used for ham purposes all the time.

As I said the other day, the use of ham radio to send encrypted messages, like a PGP-encrypted text file, is illegal, although the Feds have routinely allowed all sorts of things when a disaster happens.  If there is a total failure of civil order, I can't imagine this would be an enforcement priority.  Sort of like this old Far Side cartoon:
I think if you're going to learn how to set up and use communications, a ham license gets you the ability to do it in a licensed and permitted way. You can save the encrypted stuff for when you need it.
Simply using UHF or microwaves on a point to point link (no repeaters) will give you almost total anonymity. 

Finally, a couple of people (here and in email) have asked for book titles or other ways to learn about this field.  Most of the books I know of are at least somewhat mathematical.  Electronic Communications by Robert Schrader is a very good book, often used as a junior college text or supplement in ham classes.  Spread Spectrum Systems by Robert C. Dixon is one of the standard books.  Both of these are available in several editions and are often found used or in library sales.  The ARRL Handbook, published every year, has long been considered a very complete summary of modern ham radio theory and practice.  There's a difference between books published for working engineers and those published for school, where the aim is to impress the professors enough to become the textbook.  Because of this, I have a tendency to pick up old textbooks written from the working engineer's perspective.  I've often thought I've learned more from magazines and ham radio publications than my engineering texts, as those books have more insights per square inch than textbooks do. 


Thursday, March 28, 2013

Contemplating Privacy and Radio Communications 3

First, let's pause for a quick summary of the first two parts.  Radio communications is extremely useful, but inherently not private.  Once a signal is launched from your antenna it expands in all directions and can potentially be heard by anyone who can put together (or buy) a receiver.  Two ways of addressing the privacy concerns are to make the signal harder to detect, and to hide the contents of the message in some way, either encoding it in common language that doesn't mean what it says, or encrypting it in a way that's essentially impossible to break.  Simple ways to make a signal harder to find include to reduce power to the bare minimum needed, use brief messages, turn off radios when not in use, and to use a continually changing set of frequencies, in a relatively unused part of the spectrum. Finally, this is somewhat academic because while some of these techniques (such as reducing transmitter power, or using other frequencies) are encouraged, others (such as encryption) are illegal. 

What other technical means are there to ensure that only an intended recipient could get the message?  An obvious one is to not use radios.  Use wire, or optical fiber.  The equally obvious disadvantage is inflexibility.  First, the users have to be in located where the wire is.  Second, if the wire is found it can either be cut, or more dangerously, it can be tapped (yes, fiber optics can be tapped).

A way to decrease the power even further is to ask whether it's possible to get information out of a weaker, noisier signal, a lower SNR.  This has been researched for much of the last hundred years of radio, and it's quite possible to do that.  I have to go over some background before I get to signals below the noise.

A necessary detour here is into information and bandwidth.  Even people who are relatively new to communications probably have an idea about bandwidth - it's what you're buying when you buy a fast internet pipe.  The universe is put together in such a way that to send more information either takes more time or more bandwidth.  That tells us that time and bandwidth are inversely related - if you were online in the days of 56k dial-up modems (or 28k, or... or if you're still on dial-up) you'll remember how long it took to download a jpeg. 

But what do we mean by information?  Among the most useful pieces of mathematical theory to be developed in the last century is Claude Shannon's information theory.  Information theory starts with a concept that's so simple it's stupid: if I tell you something you already know, I haven't conveyed any information.  I like to use the example that if I come in from going to the mailbox some day in August, and I say, "it's hot out there", I've conveyed no information.  You know it's hot because you know it's August and this is Florida.  What conveys information is telling you something you don't know: to radio signals that means changes in state.  

A lot of very useful thoughts come out of that simple idea.  Let's say I put a radio signal on the air.  No modulation, no voice, music, nothing - what's called a carrier.  The only information I've conveyed is the presence of that signal.  That's not necessarily useless: I could be telling you "I made it to the destination". The world's superpowers have used a signal like this for nuclear submarines.  The signal being there tells them the homeland hasn't been vaporized so there's no reason to launch their nuclear doomsday weapons.  A digital way of looking at it is that I've conveyed one bit of information.  Friends from the Three Letter Agencies will tell you it's possible to encode more information with a single carrier, the time of day can have meaning.  The exact frequency could mean something.  We could agree in advance that one frequency means "everything is ok" and the other means "mission failed".

Shannon tells us that the way to get optimum information transmission is make changes in the signal.  The simplest way to add information to the carrier is to turn it on and off.  On Off Keying (OOK) can be Morse code, or it can be a custom code - some cars' remote door lock systems use OOK.  Adding information to the signal - modulating it - increases its bandwidth.  In a Morse code system, the bandwidth is usually considered to be about 5 Hz for every Word Per Minute (WPM) of code speed, so a 20 WPM signal occupies 100 Hz, while a perfect carrier has virtually zero bandwidth.  Think how long a sheet of text would take to send at 20 WPM, what used to be considered an expert's speed.  Voice conveys more information but, of course, occupies more bandwidth. 

Over the years, radio experimenters have developed a broad set of techniques to modulate a radio signal.  Any characteristic of a signal can be controlled or modulated from OOK to control of amplitude with the information or Amplitude Modulation (AM), control of the frequency or Frequency Modulation (FM), Phase Modulation (PM) and probably the most common systems today are Phase Shift modulated (called Phase Shift Keying or PSK, in general).  In most of those systems, the bandwidth used is the minimum required for the information to be transmitted. 

An interesting aspect of modulation is that some improvement in SNR can be obtained by using more bandwidth than the signal requires.  Broadcast FM radio achieves process gain by using rather wide bandwidths - any signal level higher than the threshold gives more SNR than a narrowband modulation would. 

Putting the idea of process gain together with that of LPI/LPE design, we've found advantages to using much more bandwidth than the data requires.  This is called Spread Spectrum or SS.  A few weeks ago, I posted about how actress and mathematician Hedy Lamarr developed a way of hiding radio transmissions based on changing the channels between a submarine and a torpedo.  Most workers consider her patent the invention of FHSS or Frequency Hopping Spread Spectrum, the simplest form of SS. What makes it impressive is that you can't just change channel whenever you feel like it - what if you're in the middle of a command to the torpedo?  The hop rate has to be slower than the modulation rate, and likely synchronized to it, or the modulation gets lost.  She had to understand that. 

Most systems, like the WiFi systems found everywhere, are a form of Direct Sequence Spread Spectrum, DSSS.  The idea is straight from Shannon.  To convey information, we have to change some aspect of the transmit signal.  What changes state the most?  Noise.  The most information is sent in a given time when the signal is most like noise  In DSSS, the modulation is a digital data stream which is then multiplied by a pseudorandom number to make it more noise-like (more transitions).  The pseudorandom number is usually generated in a circuit consisting of a sequence of logic elements, so it's also called pseudonoise or PN sequence.  This multiplication can make the spectrum as wide as we'd like it.  Why would we want to?  It becomes harder to jam.  Spread spectrum takes the information (blue) and spreads it out over a wider chunk of spectrum, like this (yellow is the resulting spectrum which gets transmitted) :
The wider spectrum has a lower peak power because all of the transmitter power gets spread over the wider chunk of spectrum.  At the receiver, this power can be below the thermal noise in that bandwidth, which makes good on my promise to tell you about modulation that can work with lower SNRs.  The receiver has the task of synchronizing itself to the received data, a process called correlation.  When it does so, it turns that wide pedestal of data back into the narrow modulation the transmitter started with.  In the process something interesting happens to a jammer (shown in red, here).  The jammer gets de-correlated and spreads out, reducing its power, making it less effective.    
This requires a more complex receiver.  When you think about it, the whole point of this is making the transmitted signal harder to detect.  We also make it harder for us to detect our own signal.  
   
This is a lot for one reading.  Next we'll get into some digital modulation modes that are easy to get started in. 


Wednesday, March 27, 2013

Contemplating Privacy and Radio Communications II

Let's say you and I were out in a crowd - a party or something - and you wanted to tell me something that you didn't want other people to hear.  How would you handle that?  I'll bet you'd lower your voice and get closer to me, whispering it to me.  The radio equivalent of this is to lower your transmitter power.  You wouldn't want to stand on the tallest table on the other end of the room and use a megaphone to tell me, while scolding the other people for hearing it.  That's the equivalent of legislation.

The obvious question is how much transmitter power do you need to get your message to the other guy?  That depends mostly on the modulation type you're using, the distance, and the frequency.  If you want to be analytic and calculate it, you want to calculate what systems engineers call a "link budget" which centers on the "path loss" from transmitter to receiver.  You can find examples and background with a few minutes in your favorite search engine.  This one seems like a pretty decent online path loss calculator.  You enter a transmitter power, frequency, distance, and antenna gain, and get the power at the receiving station.

One of the things you need to to know to use these solvers is how strong the signal needs to be in order to be usable. In professional radio, they assume that a 12 dB signal to noise ratio (SNR) is good for voice work. I find that's pretty accurate for people with a lot of radio experience, they can often work with lower signals (they sound noisier), but inexperienced people might need a stronger signal.

So let's say I need to get a confidential message to a friend a few miles away.  We both have a ham license and a dual band HT (Handy Talkie - I think that was Motorola's trade name for a grown up walkie talkie).  Like most of these VHF/UHF radios, they use narrowband FM voice.  At VHF, these radios are usually very sensitive; they can deliver 12 dB Signal to Noise Ratio at 0.2 microvolt or about -120 dBm and sometimes even less.  If my friend is 2 miles away, the path loss using that link above is 86 dB.  That means that since -120 dBm is all I need to create at the receiver I can transmit at a very low power of -35 dBm.  I can use the lowest power my HT will put out and then attenuate it even more.  Ordinarily, they put out one watt (+30 dBm) or so on their lowest setting.    
I'm afraid that's going to read like gobbledygook to many.   A dB is a ratio of two numbers, 10*log (ratio).  A dBm is a ratio to a specific power: 1 milliWatt, .001W, in 50 ohms.  To be honest, more than half the engineers I work with use these terms improperly.  When I say "one watt (+30 dBm)" I'm specifying 30 dB > 1 mW: a ratio of 1000 times 1/1000 of a watt.  -120 dBm is a very small power: 10 to the minus twelfth power times 1 mW.  Once you get used to it, it's much easier to use than any other way of keeping track of many problems in radio work. 

I don't want to spend too much time talking about exactly how much power to use and how to get it because there's an amazingly big problem lurking just under the surface.  Let's say I get a power attenuator and reduce my transmitter power a million times (60 dB) until I'm putting just enough signal into my friend's receiver.  Furthermore, there's no other local noise, no big obstacles between us and no other things that could make me need more power are present.  2 miles away, my signal is essentially undetectable unless someone is tuned to exactly the right frequency at exactly the right time.  People 2 miles farther away are less likely to hear it since it has dropped another 6 dB.  Just what I want. The problem is that at my transmitter, I'm still putting out a signal that's pretty strong to a receiver.  Think about it: that signal is 86 dB (the path loss) stronger than it has to be for that receiver to hear it, and that's amazingly strong to the receiver!  If someone is trying to find me,  they just need to be within a few hundred yards of me.  This is sometimes called the Near/Far problem.  To make a signal useful far away, it becomes extremely strong to nearby receivers. 

If I use encryption, even if they heard the signal they wouldn't be able to use the intelligence it contains.  But maybe they don't really care what I'm saying.  Anyone transmitting in this town is assumed to be a terrorist and gets a SWAT raid - pick your scenario.  Plus, for a simple system like FM voice, all they need to do is generate a strong signal on frequency at the receiver's end, stronger than the expected signal, and they "capture" the receiver, making it impossible for the receiver to hear what they want.  

There are ways to try to get around their electronic countermeasures (counter-countermeasures).  Perhaps you change frequency regularly.  Perhaps instead of using a popular amateur frequency like 146 MHz, you use one that hardly anyone ever uses, like 1220 MHz or 10 GHz.  A narrowband, low power signal at 10GHz can be very hard to find, for a variety of reasons.  Whatever frequency you use, turn off your radio when you're not using it.  99.9999% of modern radios contain a "Local Oscillator" or LO (local means local to the radio) and these can be detected from some distance away.  There used to be a TV ratings agency that instead of calling and asking what you were watching, or putting a monitor box on your TV, instead would drive around neighborhoods watching the LO signals and determining what channels the TVs were tuned to. 

And if something big depends on this communications link, try it out while times are good and a transmitter doesn't get a Hellfire through your window. 

Much of this is going to go over the heads of people who aren't familiar with radio.  I'm aiming this at hams, GMRS or FRS users, and others who have played with radio but never thought about things in this way.  I apologize if it's too much geek speak.  And tell me if nothing makes sense.

More to come...



Tuesday, March 26, 2013

Contemplating Privacy and Radio Communications I

As a ham radio operator, I'm required to comply with FCC Rules, Part 97 of the Commission's Rules whenever I use the amateur bands.  One of the rules is that we must identify our transmissions at the start and end of a contact with our federally issued callsign.  Hams have a tradition going back as far as the hobby exists of swapping little post cards, called QSL cards, commemorating the contact.  (The name is one of many "Q signals" that hams using Morse code developed to shorten the text they needed to send.)  In the days before the Interwebz, you bought a phone book sized directory called a Callbook, which was a listing of every ham in the US by callsign.  You looked them up in the book, and mailed the card.  Today, hams go to a number of online sources like QRZ to look up anyone by callsign. As with all information in today's society, it's easier to trace a ham by callsign than ever before. 

Because this information was always available to anyone who cared to look, hams were always a rather open group.  Many guys just identify themselves online by their calls, including the rather famous ones (and there have always been famous ones).  If you go to hamfests, it's so unusual to see someone without a callsign badge or monogrammed shirt or hat that you just assume they're not a ham.  Many hams have carried this into the rest of their online lives.  I can't tell you how many identifiers I've come across on forums that either are the callsign by itself or a name and callsign made into one identifier. 

Most of the folks that visit here are preppers, as I am, and preppers have a completely different mindset about privacy than the typical hams do.  We're of a mindset that many in the country would describe as at least mildly paranoid.  We're certainly not the mainstream in the country, partly because we choose to think about things that most people refuse to look at.  Someone I recently heard being interviewed said he couldn't even talk with his wife about a storm pantry, just a few days worth of preps, because she "just refuses to think about it".  As a counter example, in the mid '80s, I recall deciding I would never say things like "I'm going out of town this weekend" on the VHF (2 meter) radios because I considered it a home security risk.  It's not as easy as the kids today telling everyone on Face Book or Twitter that they're far from home, but someone who had a scanner and a callbook could hear me, look me up, and visit the house while no one was here.

The concept here is "reasonable expectation of privacy".  If you're on an amateur frequency you don't haz one.   But let's say you wanted or really needed privacy.  What then? 

The military was among the first organization to have this problem and address it.  They typically describe systems as LPI/LPE: low probability of interception / low probability of exploitation.  You'll also see LPD, where D is detection.  It's handy to think of it that way because it can help you channel your thoughts on how to solve the problems.

The easiest one to accomplish is actually the last: low probability of exploitation - using your transmission against you.  I've written before on the topic of encryption or encoding which is the answer here.  It's important to note that encryption is not allowed in the amateur radio service.  There's an important distinction between encrypting something and encoding it.  As I said in the linked piece:
When you encode things, you simply change their language; when you encrypt something, you attempt to hide its meaning.  For example, any language is a coding of symbols, and in typing this, I'm encoding my thoughts into a computer code (ASCII) that can be read on your terminal.  The difference is subtle, but it matters - especially in legal context.  Some systems prohibit encryption, or “non-standard” codes.  I could transmit the phrase, “the wheat is ready for harvest” in plain English to someone who knows that I mean, “I've planted the evidence” and it is encoded, not encrypted.  If, instead, I told them, “516EE75994BA0DC137BE1074E46CB27D069C39A4” and it means the same thing, it has been encrypted. 
Either way, encoded or encrypted, I've prevented a casual listener or even a determined adversary from knowing what I told the person on the other end.  If they've broken the code somehow, they know what I meant and can exploit that information.  There are many ways of breaking codes - from getting the information from someone who knows the code to analysis of the words and frequency of usage and many other tactics.  People have been studying this around as long as there have been people.  And, of course, I can't talk about encryption without lifting this XKCD cartoon yet again.

One of the standard ways of maintaining secrecy in codes is by changing them all the time.  But what about reducing the chance of an adversary ever detecting or even knowing you're transmitting?   This is the realm of a lot of technology.  While we're not allowed to encrypt transmissions, experimentation with interesting technology is one of the stated purposes of ham radio.  The rules actually encourage many of the things we can do.   

Stay tuned...