Picket Now Remembers What Was On The Air Last Time

When we run a radio frequency (RF) survey on a site, the first few minutes of the sweep usually pick up dozens of signals. Some of them are the client's own handheld radios and alarm panels. Others are wireless microphones in a conference room, door sensors, a repeater in the parking garage or whatever the business next door is running. Up until now, Picket would show us all of that on the screen and we would write down anything that looked worth a second look. The issue with working that way is that the next survey of the same site started from nothing. There was no record of what had been heard the last time, so there was no easy way to tell whether a signal was new or had been sitting there for the last two years.
Picket is the RF monitoring and analysis tool we maintain in our open source va-pt toolkit. It runs on one or two HackRF One units, which are software defined radios (SDR) that can sweep anywhere from 1 MHz to 6 GHz. With two units, the first one handles the sweep and the second one works as the listening receiver with a PortaPack attached, which is the handheld screen and controls that fit onto a HackRF. Two is how we prefer to run it, because the second unit can listen to and monitor what the sweep finds while the first one keeps sweeping. Most of the latest round of work went into fixing the problem above. Picket now records everything it hears, compares it against earlier visits to the same site and builds the report from that.
Comparing a site against its last survey
Any earlier session at a site can now be set as the baseline, which is the record of what normally transmits there. When a new survey runs, any frequency the baseline never heard is flagged as NEW in the activity table. The report lists the new signals and also the ones the baseline heard that have gone quiet since.
A good example is a security team's radio channel that was busy on the last visit and silent on this one. That can mean the team moved to a new radio system, or it can mean the repeater died and nobody has noticed yet. A new signal at 433 MHz next to a conference room could be a door sensor that was replaced last month. It could also be a transmitter that somebody placed there. Picket has no way to tell which of those it is, so one of us still has to walk the area with the antenna and find the source.
Any two sessions can also be put side by side and split into new, not heard and unchanged. This is useful when the baseline was taken during business hours and the follow up runs overnight or on a weekend, since a building puts out different traffic when it is empty.
What gets recorded now
Before this update, Picket only kept the markers we saved by hand. Every detection is now written to the database. The Activity tab replaced the old Events tab and shows one row per frequency with the number of hits, total airtime, the last time it was heard and the best signal to noise ratio (SNR) it reached. SNR is how far the signal sits above the background noise, and it gives a rough idea of how close the transmitter is.
Common channels now show by name in the readout, the tables, the markers and the exports. A hit on 462.5625 MHz shows up as FRS 1, which is channel 1 on the Family Radio Service walkie-talkies sold in most US retail stores. UHF CB channels in Australia and PMR446 channels in Europe are named the same way. This saves the analyst from looking up every frequency in the table to work out what kind of radio is behind it.
Each session also stores the country, site, operator, antenna, position and notes, and an earlier session can be resumed if a survey runs across more than one day. Markers can be edited after the fact, and a 10 second IQ recording can be taken around any marker. IQ stands for in-phase and quadrature. It is the raw form a software defined radio captures, and it means the signal can be replayed and decoded later back at the office.
Picket reads position from gpsd, the standard Linux service for Global Positioning System (GPS) receivers, and stamps it on every detection and marker. The exports include Keyhole Markup Language (KML) and GeoJSON, which are map formats that Google Earth and most mapping tools can open. Each frequency is placed at the spot where it was heard the strongest, so a walking or driving survey of a campus comes back as a map of roughly where each signal is coming from instead of a list of numbers.
Listening to a signal and tracking it down
Auto listen has the PortaPack tune to each new detection on its own. It stays on the transmission until it ends and then moves on to the next one. Anything on the watch list can interrupt it. Picket will also tell the operator which demodulation mode to set on the PortaPack when the band and the device settings do not match, which was a common reason for hearing nothing on a channel that was clearly active.
The watch list beeps and puts a notice in the status bar when one of its frequencies goes active. The ignore list keeps known emitters, such as the client's own radio system, out of the table and out of auto listen. Those emitters are still recorded, so they still show up in the report.
Park keeps the sweep on a single frequency and revisits it about every 4 milliseconds, with a live level meter and a peak reading. A full sweep takes much longer to come back around to any one frequency, so a device that only transmits in short bursts can be missed entirely, and parking on the frequency is how we catch it. Once it is parked, we walk the antenna around the room and watch the level climb as we get closer to the source.
The report
The report is now a landscape Word document covering the session details, activity by frequency, the comparison against the baseline and every marker. When a marker is saved, Picket captures the spectrum trace automatically and the report places that picture under the marker. There is also a Capture button for saving any other trace with a caption. Markers and activity can be exported as CSV files as well.
Once the report has been written to disk, Picket deletes the session's captures and IQ recordings. Deleting a marker also removes its picture and recordings. An RF survey of a client site is sensitive data, and we did not want copies of it left sitting on a laptop after the job was done.
Surveys outside the US
We do a fair amount of work in Australia, Asia and South America, and the band plans there are different from ours. Australia now has five presets, with UHF CB as the default for handheld radios. Asia has one sweep that covers the handheld bands across the region, along with presets for China, Japan, Korea, Malaysia, Thailand, Taiwan, the Philippines, India and Singapore. South America now has CB split out from UHF and picked up an 800 MHz trunked radio preset. Calibration follows the selected region now, including a channel spacing grid for Japan. We are still checking the Asia and Australia presets against each country's regulator.
The region list used to be hardcoded. Now anyone can add their own presets to a presets.json file next to the database without changing any code.
Getting it
The code is on GitHub in the picket folder of sec0ps/va-pt, released under the MIT license.
Next on the list is a headless mode for running surveys unattended, encryption of the stored data, an occupancy timeline and smaller IQ recordings with export to SigMF. SigMF is the Signal Metadata Format, an open standard for describing RF recordings so that other tools can read them.
What to ask whoever sweeps your site
If you pay for technical surveillance countermeasures (TSCM) sweeps, find out what the team kept from the last one. A report that says the sweep was clean, with no list of what was heard, gives the next sweep nothing to compare against. Ask them for the frequencies they picked up and which ones they matched to a known source. Find out whether they know which radios your own security staff use and whether those channels are encrypted. Family Radio Service and most CB traffic is not encrypted, and anyone within range can listen to it with a cheap handheld. Also find out whether any of the sweeps were done after hours, since a device that only transmits at night will not show up on a sweep run in the middle of the afternoon.
What we do with this
We use RF surveys as part of our target assessments and physical vulnerability assessments to see which radios, sensors and transmitters are active at a site and who outside the building can hear them. For executive and dignitary security work, a baseline survey of a residence or office gives every sweep after it something to be compared against.
We're based in Dallas, Texas, and we go wherever the problem is. Red Cell Security provides cybersecurity and physical security consulting to clients across the US and around the world.





Comments