TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Run a script when police raid your house

106 pointsby lpmanover 10 years ago

14 comments

fencepostover 10 years ago
Frankly, if I were in a place or doing activities where I thought a police raid was a significant possibility, I&#x27;d MUCH rather have something that would trigger video AND AUDIO recording from multiple cameras in the house, placed in locations where they wouldn&#x27;t be &quot;accidentally&quot; knocked over or otherwise destroyed and with the data going offsite immediately via any of several channels (e.g. home network, home wifi, neighbor wifi, public&#x2F;semipublic wifi (e.g. &quot;xfinitywifi&quot;), LTE phone).<p>Alternately, always have the recording going to something local, but trigger offsiting it with something like this and otherwise have a very limited timeframe for keeping it.<p>The other VERY VERY important piece of this I suspect would be notices posted at every possible entrance to the house, something like &quot;Video and audio recording occur on these premises. By entering, you consent to this recording and to the use and public disclosure of these recordings. If you do not consent to these recording, use and disclosure policies, please call (xxx) xxx-xxxx and schedule an appointment.&quot; Perhaps I should call this a kick-through license - I&#x27;m not sure it&#x27;d stand up, but I suspect you&#x27;d have a pretty decent chance of that.<p>Of course, I&#x27;m boring, not inclined to activities likely to inspire either police interest or SWATing, and I live in a mostly-white townhouse community in the &#x27;burbs. My most likely home invasion would be because &quot;you are in a maze of twisty drives and townhouse units, all alike.&quot;
评论 #8935649 未加载
评论 #8935975 未加载
评论 #8938664 未加载
评论 #8936496 未加载
ipsinover 10 years ago
I really like his sort of thing, but realize that, like anti-forensics tools, there is a risk to having and using destructive anti-tamper triggers.<p>If the police actually think you&#x27;re up to something, raid you, and your &quot;cybernetic boobytrap&quot; destroys your hundreds of GB of <i>actual</i> random data, they may still try and prove that you&#x27;re a terrible person and destroyed evidence in court. Then it&#x27;s up to a jury, and a prosecutor bent on making you look guilty as hell.<p>I&#x27;m not trying to dissuade exploration, but understand what can happen if you actually deploy this sort of system.
评论 #8935341 未加载
评论 #8935057 未加载
评论 #8935435 未加载
matheticover 10 years ago
&gt; SWATd is a daemon for running scripts when your house gets raided by the police (or broken into by criminals).<p>It&#x27;s funny how the distinction seems blurry at times.
评论 #8935554 未加载
评论 #8935349 未加载
评论 #8936522 未加载
kbartover 10 years ago
Not to be picky, just interested. What&#x27;s the reason behind using a daemon instead of simply running sensor check scripts in Cron? Or even better, raise interrupt when sensor fails, so you don&#x27;t have to wait 30s (in worst case).
nkwover 10 years ago
IAALBIANYL, so I will leave whether or not this would be operationally useful to those smarter than me, but from a legal standpoint, one should be aware that operation of a system like this as far as the United States would likely result in additional charges for obstruction of justice[1].<p>It is by no means unusual for the government to fail in the prosecution of the original crime they investigated, but succeed in convicting a defendant for obstruction. (See, e.g. Martha Stewart[2]). In fact it is not at all impossible (though not likely) to imagine a scenario in which someone committed no crime, was running a utility like this, and was eventually charged with obstruction. Say I&#x27;m Brian Q. Krebs, some nice people on the Internet decide to swat[3] me confusing me with someone with a similar name[4], police enter my house, swatd deploys and ambitious and creative young prosecutor decides to charge me with a violation of 18 USC 1519. Might not succeed, but boy will he get some press.<p>As always, the best advice if you are going to engage in a wide-ranging criminal conspiracy is to make sure you have some goofy-reasoned memos from DOJ lawyers approving your activities[5] and Congress on call to provide you retroactive immunity[6].<p>[1] 18 U.S.C. 1519 (or 1001 or 1501, or 1510) - <a href="http://www.law.cornell.edu/uscode/text/18/1519" rel="nofollow">http:&#x2F;&#x2F;www.law.cornell.edu&#x2F;uscode&#x2F;text&#x2F;18&#x2F;1519</a><p>[2] <a href="http://en.wikipedia.org/wiki/Martha_Stewart#Stock_trading_case_and_conviction" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Martha_Stewart#Stock_trading_ca...</a><p>[3] <a href="http://en.wikipedia.org/wiki/Swatting" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Swatting</a><p>[4] <a href="http://krebsonsecurity.com/tag/swatting/" rel="nofollow">http:&#x2F;&#x2F;krebsonsecurity.com&#x2F;tag&#x2F;swatting&#x2F;</a><p>[5] <a href="http://en.wikipedia.org/wiki/Torture_Memos#Letter_from_John_Yoo_to_Alberto_Gonzales" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Torture_Memos#Letter_from_John_...</a><p>[6] <a href="http://en.wikipedia.org/wiki/Amnesty_law#United_States" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Amnesty_law#United_States</a> or <a href="http://en.wikipedia.org/wiki/Foreign_Intelligence_Surveillance_Act#Foreign_Intelligence_Surveillance_Act_of_1978_Amendments_Act_of_2008" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Foreign_Intelligence_Surveillan...</a>
评论 #8936413 未加载
earthriseover 10 years ago
Hi everyone, I&#x27;m the author of that software.<p>I really didn&#x27;t want this to blow up. It&#x27;s absolutely NOT a solution to getting raided by the police. While that was the original inspiration for writing the tool, I was half-joking when I wrote the README about it being a defense against law enforcement.<p>I&#x27;ve moved the code into a different branch and added a disclaimer to the README. The most important line of the disclaimer is: &quot;If you need to rely on SWATd, you have already lost.&quot;
Spooky23over 10 years ago
This is a really stupid thing to do.<p>Willful destruction of evidence is a criminal act in many cases, and even in cases where it isn&#x27;t, judges can instruct juries to make adverse inferences.<p>If you&#x27;re handling sensitive material, you should have a consistent policy&#x2F;practice to periodically purge, destroy or deal with data. You&#x27;re less likely to get into hot water over deleting data if its a long-standing process. If you are involved in a criminal scheme and the police are busting down the door, they have evidence already.<p>Previous jobs had me involved in alot of civil litigation from the IT side. Many really serious problems were avoided by having good deletion policy. The place that let employees squirrel away email for 20 years would either lose cases because of stupid employee chatter or win pyrrhic victories after spending thousands (or millions in one case) of dollars on discovery.
SlipperySlopeover 10 years ago
Thank you for sharing a clever script that has many uses!<p>However ...<p>Ideally, your computer should be secure against physical access and not need to run a script.<p>This is a solved problem in the intelligence and defense communities which have policies such as physical key storage, e.g. PIN enabled encrypted USBs, encrypted file systems, multifactor authentication and such to defeat forensic tools operated by an adversary.<p>Suppose you are a military or intelligence officer carrying around a laptop with secret stuff on it. How do you think that laptop is secured so that its safe even in the hands of an adversary.<p>Far more likely than a police raid, is the accidental trigger of the script, e.g. the house painter needs to move your server a bit to get to the wall behind it!
评论 #8935551 未加载
Practicalityover 10 years ago
It&#x27;s difficult to think of things you could watch that would only occur during a raid. The examples given: ethernet and wi-fi, both go down much more often than you would like to think. Usually it&#x27;s only for microseconds, but if you have a program that happens to check right then, there goes your encryption keys.<p>A tweak to the code would be to make sure that the sensor stays in the fail state for a particular duration. Even a few seconds would get rid of a lot of the false positives.
smoyerover 10 years ago
I think you could accomplish a similar function using the proximity of a cell phone to a laptop (like this: <a href="http://www.novell.com/coolsolutions/feature/18684.html" rel="nofollow">http:&#x2F;&#x2F;www.novell.com&#x2F;coolsolutions&#x2F;feature&#x2F;18684.html</a>). If the script shuts the laptop down when it&#x27;s too far from the phone, that&#x27;s perfect for me.
评论 #8935503 未加载
plumaover 10 years ago
Or simply don&#x27;t have your computer in the US.<p>But that might be easier said then done if you happen to actually live in the US, of course.
e40over 10 years ago
The interesting part would be information about available sensors, and I see none of that at the link provided. Too bad.
评论 #8935298 未加载
kefkaover 10 years ago
Or well known as a dead man&#x27;s switch.<p>Speaking tangentially, what is the current state of the art of homomorphic encryption? I found this: <a href="https://hcrypt.com/" rel="nofollow">https:&#x2F;&#x2F;hcrypt.com&#x2F;</a> - Anyone try it yet?
cryoshonover 10 years ago
Wouldn&#x27;t it be more practical to change things so that the cops aren&#x27;t raiding houses all the time?
评论 #8935790 未加载
评论 #8935422 未加载