News for hackers. Stuff that matters.
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @12:24PM (#29267967)
Hey! Sriram here, author of this work. I'd be glad to answer any questions. There's also a short talk I gave about this here (https://www.youtube.com/watch?v=t4Txdhlji4k) if that's helpful!
Re:Spy camera detection using smartphone time-of-flight sensors by starwind on Thursday November 18, 2021 @12:28PM (#29268017)
Do you have any plans release this as an app I could install on my phone?
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @12:33PM (#29268082)
Yes, we do! There are a couple of user-facing annoyances at the moment, one of which I mentioned in another comment (hacks to align the color and ToF images). Hopefully these API limitations are removed soon, or we find better workarounds.
Re:Spy camera detection using smartphone time-of-flight sensors by jmnicolas on Thursday November 18, 2021 @02:48PM (#29269567)
If you do release it, is it possible to not depend on Google services please? I am almost a year in my degoogled life!
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @03:14PM (#29269880)
I would love to, but I'm not sure how yet without a major re-write. The augmented reality code we completely rely on is part of Google Play Services for AR. I definitely do understand the benefit of degoogling, so maybe it can be a community effort once I opensource it.
Re:Spy camera detection using smartphone time-of-flight sensors by robotresearcher on Thursday November 18, 2021 @11:40PM (#29273907)
> Google Play Services for AR.

Google’s branding is awful.

Re:Spy camera detection using smartphone time-of-flight sensors by lrem on Friday November 19, 2021 @01:29AM (#29274424)
Google Play Music All Access -> YouTube Red

Man, we're so bad at naming, that we keep joking about it... And trying to satire that with internal codenames (the ones engineers give without adult supervision)... And somehow those often seem better than the external names :(

Re:Spy camera detection using smartphone time-of-flight sensors by bradknowles on Friday November 19, 2021 @01:13AM (#29274352)
So does this mean the app will not be available on iPhone?
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Friday November 19, 2021 @03:31AM (#29275032)
It could also possibly work on iOS, but there's a catch we have not yet explored. We're relying on something called the "confidence" score in the ToF camera API, which has 8 possible values (3 bits) in Android, but from what I last saw, has only 3 possible values total in iOS. It's not clear how this lack of info exposed by the APi will affect accuracy.

This is something we'd have to separately test, and ultimately make a wholly different app for if it's feasible on iOS.

Re:Spy camera detection using smartphone time-of-flight sensors by seaman1921 on Thursday November 18, 2021 @05:32PM (#29271480)
Please don't make the functionality worse just to please the de-googled hacker=news crowd.
Re:Spy camera detection using smartphone time-of-flight sensors by colordrops on Friday November 19, 2021 @04:02AM (#29275201)
There's no reason it has to be worse. It's good development practice to design your system to loosely couple with dependencies you have no control over. Worst case you could have two versions, and the one that supports google services works better for whatever imagined reason.
Re:Spy camera detection using smartphone time-of-flight sensors by colordrops on Friday November 19, 2021 @04:00AM (#29275189)
Is there a support group or discord for degooglers? I did it a month or so ago and am still dealing with the ramifications. Most recently I used App Warden to disable all the spyware libs (including Google's) shipped with WeChat. They detected this, and banned my 10 year old account with all my friends and relatives. Been struggling for two days trying to get it reactivated, cuz it will be extremely difficult to travel back to China without it. I am not blind to the irony of keeping Tencent on my phone as I remove Google.

What would be really helpful is a database of apps, similar to the WINE project, maintaining how well they work on a de-googled phone, with a table, columns being "no root", "rooted", "with microg", etc, and a WINE style rating of how well it works and what problems you'll run in to.

You would know which banking services, etc don't work well or at all and could choose your establishments with foresight.

Re:Spy camera detection using smartphone time-of-flight sensors by T4iga on Friday November 19, 2021 @08:39AM (#29276991)
There is a GitHub repo[1] with a very limited list last time I checked. That the best I could fined in my degoogled time. The Techlore Youtube-Channel-Community (yes, I realise the irony) also seems like a reasonably healthy place to start. There is also a bunch of telegram groups with NoGoolag[2] at the center. I would not recommend for the 70:30 mix of conspiracy and tech support but they are at least technically very knowledgeabl, and sometimes helpful, even considering their almost 'religious' technical beliefs.

[1] https://github.com/techlore/plexus

[2]https://t.me/NoGoolag

Re:Spy camera detection using smartphone time-of-flight sensors by jmnicolas on Friday November 19, 2021 @05:04AM (#29275560)
Sorry I'm not aware of anything like this. I went "all in" : I just installed GrapheneOS on my phone, Linux on my desktop and stopped using anything Google related (except YouTube that I watch in a dedicated browser).
Re:Spy camera detection using smartphone time-of-flight sensors by ranger_danger on Friday November 19, 2021 @06:17PM (#29283831)
The Techlore matrix/discord group is a great place for this.
Re:Spy camera detection using smartphone time-of-flight sensors by Abishek_Muthian on Friday November 19, 2021 @08:07AM (#29276726)
Off-topic

What were your biggest reliance on Google services you found in this 1 year and how did you overcome it?

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Friday November 19, 2021 @09:25AM (#29277460)
Interesting question. Mainly as mentioned above we needed Google Play Services for AR. Nothing else stands out at a high level.

However there is a clear bottleneck with the Google AR team for features that the community really wants. While it's understandable, perhaps the open source libraries aren't the priority or there's short staffing, there are issues like this one - https://github.com/google-ar/arcore-android-sdk/issues/153 - that have been open since Jan 2018. This one asks that we can use the smartphone flashlight simultaneously with ARCore, but there's no visibility on how close we are at the moment. This feature would have likely improved our work's performance greatly, but even in general, many other AR developers are asking for it.

Re: overcoming it, there's not much we can do in this case. We just didn't implement the feature.

Re:Spy camera detection using smartphone time-of-flight sensors by Abishek_Muthian on Friday November 19, 2021 @11:51AM (#29279234)
I apologize Sriram I actually I meant to ask that to the user jmnicolas who asked you to for de-googled application; Yet you provided valuable information.

Long standing issues/feature requests are typical of Google's Android ecosystem, Regardless I eagerly await for your release. I think ToF based spy-camera detection could make a great addition to the women safety apps in India.

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Friday November 19, 2021 @02:34PM (#29281275)
Ah, I see. Thank you!
Re:Spy camera detection using smartphone time-of-flight sensors by iamwil on Thursday November 18, 2021 @12:39PM (#29268139)
Where do we sign up to be notified when this is released?
Re:Spy camera detection using smartphone time-of-flight sensors by Mikejames on Thursday November 18, 2021 @05:08PM (#29271261)
+1
Re:Spy camera detection using smartphone time-of-flight sensors by datameta on Thursday November 18, 2021 @05:20PM (#29271369)
same here
Re:Spy camera detection using smartphone time-of-flight sensors by Iolaum on Thursday November 18, 2021 @12:38PM (#29268131)
Awesome, if there's a waiting list or a website that we can join or follow to be notified of a release please share.
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @12:43PM (#29268192)
Sadly no project-specific page yet, but I'll definitely update on my page at https://sriramsami.com/research/ (I think there's an RSS feed?) when it's active.
Re:Spy camera detection using smartphone time-of-flight sensors by specto on Thursday November 18, 2021 @02:34PM (#29269420)
Re:Spy camera detection using smartphone time-of-flight sensors by iamwil on Friday November 19, 2021 @12:09AM (#29274032)
It's easy to set up a mailing list. Just sign up for mailchimp, or any one of the many newsletter products like substack or tinyletters, just to collect the email addresses. Not many people regularly read RSS anymore, sadly.
Re:Spy camera detection using smartphone time-of-flight sensors by david_allison on Thursday November 18, 2021 @03:04PM (#29269763)
Would you consider open sourcing the app as-is?

You've got a community of people who're willing to spend time polishing.

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @03:08PM (#29269802)
It's definitely something I'm considering. The only hard blocker now is a hashmap that checks for our test phones' unique ID and applies a fixed transform to align both cameras. Right now, any other phones will cause an immediate crash. Minimally I think we need to disable this and maybe include a small UI to let users put in the alignment parameters (just a scale + offset).
Re:Spy camera detection using smartphone time-of-flight sensors by david_allison on Thursday November 18, 2021 @03:13PM (#29269879)
Feel free to shoot me an email (in profile) if you'd like this UI done. No need for anything else other than the source code.

It'd be a massive benefit to society to make this widely available.

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @03:10PM (#29269829)
Also I appreciate the interest, thank you. I'm heading back from the conference over the next few days, so I should be more free to take a look at it soon.
Re:Spy camera detection using smartphone time-of-flight sensors by raylad on Thursday November 18, 2021 @06:59PM (#29272206)
iOS too?
Re:Spy camera detection using smartphone time-of-flight sensors by djmips on Thursday November 18, 2021 @05:14PM (#29271322)
Would your system work against flat cams? https://youtu.be/BdgwO_i5p54
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @05:22PM (#29271388)
Thats very interesting, first time hearing of it. Not sure, really depends on what kind of reflection it generates when light hits it, and because of the unique design I'm not sure what that will be.
Re:Spy camera detection using smartphone time-of-flight sensors by megablast on Thursday November 18, 2021 @05:48PM (#29271603)
Does it work against something that doesn’t exist yet??
Re:Spy camera detection using smartphone time-of-flight sensors by genewitch on Thursday November 18, 2021 @08:20PM (#29272712)
Lensless cameras have been around for a long time, the chips and masks that are completely flat is a new idea, I guess.

Single pixel cameras are lensless, for instance.

Re:Spy camera detection using smartphone time-of-flight sensors by pishpash on Thursday November 18, 2021 @08:27PM (#29272755)
At some point if you are light-emitting you're going to be captured. May need to turn yourself into a blackbody, i.e. hide under sheets.
Re:Spy camera detection using smartphone time-of-flight sensors by 5faulker on Thursday November 18, 2021 @01:36PM (#29268823)
The next project would be creating another device to detect these spy camera detectors
Re:Spy camera detection using smartphone time-of-flight sensors by filoeleven on Thursday November 18, 2021 @07:38PM (#29272446)
Ah yes, like the radar detector wars!

> many early "stealth" radar detectors were equipped with a radar-detector-detector-detector circuit, which shuts down the main radar receiver when the detector-detector's signal is sensed, thus preventing detection by such equipment.

https://en.m.wikipedia.org/wiki/Radar_detector#Radar_detecto...

Re:Spy camera detection using smartphone time-of-flight sensors by pishpash on Thursday November 18, 2021 @08:25PM (#29272743)
Well if the hidden camera can be shut down by turning on a hidden camera detector, then the hidden camera detector becomes a hidden camera jammer! All the better.
Re:Spy camera detection using smartphone time-of-flight sensors by stinos on Thursday November 18, 2021 @02:25PM (#29269322)
A hidden camera which detects ToF sensors
Re:Spy camera detection using smartphone time-of-flight sensors by deegles on Thursday November 18, 2021 @04:06PM (#29270556)
What are the properties of the cameras that don't get detected? Wouldn't bad actors just use the same app to check if their cameras are detectable at installation time?
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @04:26PM (#29270799)
So far the biggest issue is if the camera is angled oddly away from the user (basically, outside the 20 degree observable FoV). Another issue would be if they manage to install a larger camera that returns larger reflections (which we filter out).

Regarding using the app to check, I guess that applies for the existing handheld detectors as well. It's definitely something that intelligent attackers can try to plan for, but we havent tested the adversarial robustness of the system right now. That would be a very interesting direction for us as well.

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @04:33PM (#29270885)
But at least for the larger camera case, we can just increase one of the filtering thresholds for reflection size, which is already doable on the UI
Re:Spy camera detection using smartphone time-of-flight sensors by mensetmanusman on Thursday November 18, 2021 @12:39PM (#29268149)
Great work!

Do you have a link to where you can buy these types of time of flight lasers/sensors? Curious about the additional hardware cost versus sensitivity.

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @01:57PM (#29269062)
Thank you!

While this work operates on ToF sensors that are already present in smartphones (e.g., Samsung S20+/Ultra), a Microsoft/Azure Kinect should also be a valid option because it has a depth camera as well. It has a higher resolution and bit-depth as well.

We initially intended to compare against the Kinect, but it doesn't fit the use case (something that you can have on you at all times). However, it could be a cheap choice for a different kind of deployment (automated hidden camera detection with robots, perhaps?)

Re:Spy camera detection using smartphone time-of-flight sensors by tootie on Thursday November 18, 2021 @02:47PM (#29269559)
So I had no idea phones have ToF sensors these days. Do most phones have them or only the high-priced flagships? What are the actual intended uses for them?
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @02:59PM (#29269693)
High priced flagships have them but there are also a few midrange phones like the Huawei P30 Pro that have them too. The trend seems pretty positive towards more ToF sensors in phones, especially because Apple has had them for two iPhone Pros in a row now.

They're basically for augmented reality applications because they sense depth. Placing objects at the right size and scale in the augmented view is much easier and more accurate with the ToF sensors, for instance.

Re:Spy camera detection using smartphone time-of-flight sensors by genewitch on Thursday November 18, 2021 @08:24PM (#29272738)
Any phone that has sub 200ms focus times has to have some sort of TOF sensor, right? The Asus Zenfone 2/3 laser, the Huawei monochrome sensor on the honor series, the portrait and/or macro sensors on the Xiaomi mi note 10, whatever the original Zenfone had, and so on.

Not all of them are lasers, which might be important.

Re:Spy camera detection using smartphone time-of-flight sensors by archon810 on Friday November 19, 2021 @01:58AM (#29274531)
Do you know if the Pixel 6 series supports ToF?
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Friday November 19, 2021 @07:38AM (#29276537)
I don't think so. There's "laser-assisted autofocus" which might be slang for an actual ToF sensor, but sometimes that's just a single laser pulse (I.e., no 2D image that we need).
Re:Spy camera detection using smartphone time-of-flight sensors by 14 on Thursday November 18, 2021 @02:01PM (#29269110)
I was wondering if cameras started using anti-reflective glass would this prevent detection? Some of the glass I’ve looked up say they reflect less than 1% of light. How sensitive is your app could it detect 1% reflections? Thanks
Re:Spy camera detection using smartphone time-of-flight sensors by nomel on Thursday November 18, 2021 @02:10PM (#29269197)
It's lens + sensor stackup reflection. Camera sensors are much more reflective than a lens.
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @02:24PM (#29269315)
Yep, the combination is highly reflective. I cited another work (by a physics research group) in a comment that modelled and tested this effect comprehensively.
Re:Spy camera detection using smartphone time-of-flight sensors by 14 on Thursday November 18, 2021 @03:15PM (#29269907)
Would you speculate if anti reflective glass on the outside of the camera and a layer of one way tint on the inside that would allow light through but prevent it from reflective back out? I’m just thinking what we will expect in the future to sell the “undetectable spy camera”.
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @03:26PM (#29270051)
That's a great question. I'm not totally sure if this is possible. If it was, I think one-way mirrors would use this technology. For now, it seems like they only work because they only let 50% of the light through + there's a brightness differential between both sides. Perhaps someone more informed about this could chime in.
Re:Spy camera detection using smartphone time-of-flight sensors by mnw21cam on Friday November 19, 2021 @04:37AM (#29275408)
Yeah, there's no magic material that can violate the second law of thermodynamics, because it's the second law of thermodynamics. One-way mirrors are just partial mirrors with less light on one side than the other.
Re:Spy camera detection using smartphone time-of-flight sensors by user-the-name on Friday November 19, 2021 @06:06AM (#29276009)
There's no such thing as a "one way tint".

https://en.wikipedia.org/wiki/One-way_mirror#Principle_of_op...

Re:Spy camera detection using smartphone time-of-flight sensors by nomel on Friday November 19, 2021 @01:36PM (#29280649)
This is a simple implementation of a one way mirror.

Metamaterials have a chance at at: https://www.nist.gov/news-events/news/2014/07/new-nist-metam...

Re:Spy camera detection using smartphone time-of-flight sensors by pishpash on Thursday November 18, 2021 @08:32PM (#29272804)
Then they'd have a signature of reflecting less than surrounding. In the long long run, probably more robust to detect the entropy generated by computation in a physical area (i.e. heat) and not the optics.
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Friday November 19, 2021 @07:46AM (#29276593)
Agreed. I expect however that any easily available thermal sensing, especially on smartphones (see FLIR, etc), could be easily defeated with a strong adversary doing good thermal management.

As you say though, extra heat is a physical guarantee, so maybe a smarter technique exists to separate signal from noise in the thermal domain that I don't know of yet.

Re:Spy camera detection using smartphone time-of-flight sensors by 14 on Thursday November 18, 2021 @03:08PM (#29269801)
So would something like anti reflective glass for light coming into the camera then another layer of like tint that will stop light from reflecting back out if the camera? Ya I know that doesn’t exist but That is because they were not trying to do undetected as hard before. Just thinking of counter surveillance techniques.
Re:Spy camera detection using smartphone time-of-flight sensors by PaulDavisThe1st on Thursday November 18, 2021 @04:26PM (#29270794)
> Just thinking of counter surveillance techniques.

Counter-counter surveillance techniques, IIUC.

Re:Spy camera detection using smartphone time-of-flight sensors by ticklemyelmo on Thursday November 18, 2021 @03:15PM (#29269915)
Could this be applied to longer-range applications? Concert / theater cameras, camera / binocular observers, counter-sniper detection?
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @03:23PM (#29270022)
While the broader technique should work for those applications, the platform (smartphone ToF sensors) probably won't. Smartphone ToF sensors have a pretty limited range. We were only able to detect cameras within 1 metre of the smartphone because we're really using the hardware for something it's not intended for.

For the applications you suggest, there are some existing military-looking devices out there that use multiple lasers to find sniper scopes, for example. My basic searching shows at least https://www.ldsystems.us/product/sniper-optics-detector/#, though I'm sure there's more.

Re:Spy camera detection using smartphone time-of-flight sensors by 123pie123 on Thursday November 18, 2021 @12:49PM (#29268274)
I do like this

what technology advancement would be needed to increase the detection rate and reduce the false positives?

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @12:58PM (#29268382)
Right, a few things would be very useful:

- Increasing the resolution of ToF cameras (right now images are around 320 x 240) --> reflections from hidden cameras can then be more detailed, whereas now it's only 1 or 2 pixels each.

- Increasing the bit-depth of ToF images - right now every pixel is only 3 bits (8 colors). It's very hard to differentiate bright hidden camera reflections from everything else, so we had to do a lot of work for that.

- API improvements in conjunction with augmented reality libraries, e.g., a) allowing Android devs to enable the flashlight when AR apps are running b) more raw access to the ToF sensor if possible

Re:Spy camera detection using smartphone time-of-flight sensors by debt on Thursday November 18, 2021 @01:15PM (#29268592)
320 x 240, is this the resolution of the depth data provided by the LiDAR sensor?
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @01:18PM (#29268622)
Yep, exactly.
Re:Spy camera detection using smartphone time-of-flight sensors by pnw on Thursday November 18, 2021 @04:21PM (#29270738)
Samsung started marketing their ISOCELL Vizion 33D camera in 2020 with 640 x 480 resolution. So it's likely we'll see better ToF resolution announced in some phones in the next year or two.

Great project btw!

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @04:35PM (#29270912)
Thank you! Actually, my understanding when I started this project was that I would get a 640 x 480 image (IMX516 sensor). However, I could only get a 320 x 240 image from the sensor through the Android API, so that was a bit of an oddity.
Re:Spy camera detection using smartphone time-of-flight sensors by datameta on Thursday November 18, 2021 @05:21PM (#29271380)
The results are even more impressive with that considered!
Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Thursday November 18, 2021 @05:23PM (#29271395)
Thank you! Hoping for higher resolutions soon.
Re:Spy camera detection using smartphone time-of-flight sensors by floatboth on Thursday November 18, 2021 @07:37PM (#29272439)
Hm, if "ToF sensors" are LiDARs.. why does only Apple market them as LiDAR? Why are all the "3D scanning" apps only for Apple's "Pro" devices? How come no one knows that some Android devices can do the same things? I didn't know until this thread!
Re:Spy camera detection using smartphone time-of-flight sensors by dr_kiszonka on Thursday November 18, 2021 @08:12PM (#29272660)
My understanding is that not all ToF sensors are LiDARs. There are also different types of LiDARs, e.g., some of them scan the environment and others just emit a single beam in the same one direction. I think iPhone Pro has the scanning one, but I haven't read much about it.
Re:Spy camera detection using smartphone time-of-flight sensors by raxxorrax on Friday November 19, 2021 @03:09AM (#29274935)
I assume one is active while the other is not. With two cameras you have the option of stereoscopic analysis where you have to match pixels of two cameras looking on the scene from a different angle. That uses significant cpu-time though, difficult for real time applications. Results vary because the matching isn't trivial and the difference in angle in smartphone cameras is very low.

If you have a projector, you can do more. I believe Apple uses a flash, which has a low resolution, but is perhaps less cpu-intensive and less error prone, although it has a lower resolution. That would be a real Lidar, which is an active measurement. Of course combining that with sensible stereoscopy nets better results.

Re:Spy camera detection using smartphone time-of-flight sensors by salicideblock on Friday November 19, 2021 @07:35AM (#29276516)
All ToF systems are active.

ToF stands for "time of flight". It works exactly by measuring how long the signal takes to go from camera to object and back [1]

Stereoscopic cameras are another type of 3R camera, they are not ToF and they are not active.

Each has pros and cons.

[1] https://en.m.wikipedia.org/wiki/Time-of-flight_camera

Re:Spy camera detection using smartphone time-of-flight sensors by frizensami on Friday November 19, 2021 @07:43AM (#29276572)
There's a lot of marketing involved in this naming, with Samsung calling it DepthVision and Apple calling it LIDAR. There may be a difference here, however. My understanding is that Apple LIDAR is doing what we call "direct" ToF, where the round trip travel time of laser pulses is actually measured (this can be in nanoseconds). This lines up with what self driving car (and other expensive) LIDARs do.

Most other ToF sensors use "indirect" ToF, where they measure the phase difference between incoming and outgoing signals to derive distance.

However, it gets murky as cheap 2D LIDARs on say, robot vacuum cleaners, use geometric techniques to find distance (basically return angle of a reflection). I explored this in a previous work.

TLDR: I would recommend not taking any naming at face value and reading the actual datasheet or more commonly, technical marketing materials, since few ToF manufacturers that I see have a public datasheet.