Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info request: read - only traffic filter? #207

Open
kubycsolutions opened this issue Dec 26, 2024 · 1 comment
Open

Info request: read - only traffic filter? #207

kubycsolutions opened this issue Dec 26, 2024 · 1 comment

Comments

@kubycsolutions
Copy link

Can the Cynthion be used as a protocol filter?

I have been looking for a way to restrict hard drive access to read only. Unfortunately drives no longer come with a switch for this, and since they now communicate via serial protocols it's no longer a matter of leaving a wire out of a cable. You would think that by now dedicated gadgets for this purpose would be available at the SATA or USB layers, but the few I have found are being sold to the data forensics market and seem to start at around five times the price of your device.

Of course, I would be utterly delighted if there was a sample configuration provided which implemented this, and I suspect there would be significant interest in it. But simple confirmation that it could do this job might be enough to get me to invest in one.

@kubycsolutions kubycsolutions changed the title Info request Info request: read - only traffic filter? Dec 26, 2024
@nekrondev
Copy link

nekrondev commented Dec 27, 2024

I followed the project right from the start and my best bet would be to check if Moondancer (i.e. Facedancer running on Cynthion) allows MITM of MTP protocol to change data packets on-the-fly to get your drive into read-only state.

However, don't expect high throughput as the Moondancer RISC-V softcore had some bandwidth limitations they are working on to improve. There is currently no appliance like solution with Cynthion, but I think it would be capable of if some firmware or bitstream would support it to use it as a hardware firewall for your USB devices.

That being said it would be much easier for you to mount your USB drive on a Linux system read-only and proxy it to your host computer using mass storage gadget system (https://docs.kernel.org/usb/mass-storage.html) if your device supports USB OTG (see https://github.com/AristoChen/usb-proxy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants