Posts Tagged ‘dsp program attack’
Supply Chain Leaks: Four Points Where Programming Data Escapes
A product with excellent read protection and a plaintext programming file on a contract manufacturer’s server has no protection at all. The two facts are independent, and the second one is the one that determines whether the firmware is confidential.
This is worth setting out as an assessment because it is cheap to perform and because the findings are usually uncomfortable. Four points in the chain carry the image out, and only one of them involves the chip.
Point one: the contract manufacturer’s programmer
A programming house receives the file, loads it into a programmer, and runs a production line. The file exists on their equipment, in their backups, and in whatever transfer mechanism was used to deliver it.
The controls that matter are contractual and procedural rather than technical: whether the file is encrypted at rest, whether it is deleted after the run, whether the programmer logs are retained and by whom, and whether the equipment is shared with other customers.
| Control | Present | Consequence if absent |
|---|---|---|
| File encrypted at rest | Sometimes | A backup contains the image |
| Deleted after the run | Rarely | The image persists indefinitely |
| Dedicated equipment | Rarely | The next customer inherits the state |
| Programming logs controlled | Rarely | The image may be in a log |
The fourth row is the one that surprises. A programmer that logs each device’s serial number and the file hash leaves a record of the image’s identity, and on some equipment, of the image itself.
Point two: the transfer
The file has to reach the manufacturer, and the transfer is where most leaks happen because it is treated as an administrative step.
Email attachments, shared drives, unencrypted FTP and messaging applications are all in use. Each of them creates a copy outside the customer’s control, and each of them is frequently accessible to more people than intended.
| Transfer method | Copies created | Discoverable later |
|---|---|---|
| Email attachment | Mail server, recipient, backups | Yes |
| Shared drive link | The drive, plus caches | Yes |
| Unencrypted FTP | Server logs, transient copies | Yes |
| Physical media | Whoever holds the media | No |
| Encrypted archive plus a separate channel | One, if the key is handled | Yes, but useless |
The last row is the only one that is robust, and it requires the key to travel by a different channel from the file. A password sent in the same email as the archive is not a control.
Point three: the production log
A production line records what it did: how many units, which file, which result, which serial numbers. Those records are necessary and they are also a description of the product.
The exposure is cumulative. A log with a thousand entries tells an observer the production volume, the date range, the file version and the yield. Combined with a single leaked image, it tells which units carry which firmware.
| Log content | What it reveals |
|---|---|
| File hash per unit | Which firmware is in which unit |
| Serial number ranges | Production volume and dates |
| Test results | Yield and failure modes |
| Rework records | Which units were reprogrammed |
The fourth row is the one that is usually overlooked. A rework record identifies units that were opened, and those are the units most likely to have been physically accessible.
Point four: the repaired board
A returned unit is a board with a programmed device on it, and it travels outside the controlled chain.
A repair centre, a distributor’s service department or a third-party workshop receives the unit, and the device on it is a copy of the firmware that nobody counted. The controls that apply to a production line rarely apply to a repair bench.
| Path | Exposure |
|---|---|
| Warranty repair | Device accessible to service staff |
| Out-of-warranty repair | Device accessible to third parties |
| Disposal | Device sold or scrapped intact |
| Customer returns resold | Device in the hands of a reseller |
The third row is the one that matters for products with long service lives. A device that is scrapped with its firmware intact is a device that can be acquired for the price of scrap, and the protection on it is the only thing standing between the firmware and the market.
Why the chip is the last line, not the first
The four points above are process exposures, and they exist regardless of how good the silicon protection is. The chip is the last line because it is the only one that remains when every process control has failed.
That reframing changes what an assessment should recommend. The usual recommendation is a stronger protection bit; the useful recommendation is a combination in which the process controls reduce the number of copies, and the protection ensures that the copies that escape are not readable.
| Layer | Measure | Addresses |
|---|---|---|
| Contract | Confidentiality terms, audit rights | Points one and two |
| Process | Encrypted transfers, key separation | Point two |
| Data | Log minimisation | Point three |
| Silicon | Read protection, debug lock | Point four |
| Lifecycle | Scrap and disposal control | Point four, later |
How the assessment is performed
The work is a document review and a set of interviews, not a laboratory exercise, and it takes about a week.
The review starts with the transfer: what was sent, by which channel, to whom, and whether the key travelled separately. It then covers the manufacturing agreement: whether the file is deleted, whether the equipment is dedicated, who can access the logs. It finishes with the lifecycle: what happens to a returned unit and to a scrapped one.
| Question | Finding if the answer is wrong |
|---|---|
| How was the file transferred? | An uncontrolled copy exists |
| Did the key travel separately? | The transfer is not encrypted in effect |
| Is the file deleted after the run? | An indefinite copy exists at the manufacturer |
| Who can read the logs? | Production volume is disclosed |
| What happens to scrapped units? | An intact copy is on the secondary market |
Where this fits
The silicon measure that backstops the process is the read protection described in three protection layers, and the reason a device with write access and no read protection is worse than an open one is in programming port permissions.
Where the file transfer is the leak, the fix is procedural and the encryption of the container is the subject of encrypted programming. Where the exposure is a scrapped unit on the secondary market, the technical question becomes how much work reading it costs, which is the assessment in MCU attack surfaces.
What we deliver is a ranking: which of the four points is the largest exposure for this product, what it would take to exploit it, and which measure closes it. A report that recommends stronger encryption while the file sits on a shared drive has assessed the wrong thing.