Advertisement
th3j35t3r

So, you want to be a darknet drug lord...

Apr 13th, 2015
62,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.26 KB | None | 0 0
  1. So, you want to be a darknet drug lord...
  2. by nachash
  3.  
  4. [The advice in this article can be adapted to suit the needs of other
  5. hidden services, including ones which are legal in your jurisdiction.
  6. The threat model in mind is that of a drug market. The tone is that of a
  7. grandfather who is always annoyingly right, who can't help but give a
  8. stream-of-consciousness schooling to some whippersnapper about the way
  9. the world works. If this article inspires you to go on a crime spree and
  10. you get caught, don't come crying to me about it.]
  11.  
  12. You've decided that you're bored with your cookie-cutter life of working
  13. at a no-name startup, getting paid in stock options and empty promises.
  14. You want a taste of the good life. Good for you, kid. I used to run a
  15. fairly popular hidden service (DOXBIN) that was seized by the FBI after
  16. 3 1/2 years of spreading continuous butthurt, then subsequently
  17. repossessed from the feds. Because I managed to not get raided, I'm one
  18. of the few qualified to instruct others on hidden services and security,
  19. simply because I have more real-world experience operating hidden
  20. services than the average tor user. In other words, very little of this
  21. advice is of the armchair variety, as you'll often find in abundance the
  22. Internet. But enough about me. Let's talk about your future as an
  23. internet drug lord.
  24.  
  25. 1. Legal/Political
  26.  
  27. First things first, you need to cover the legal, historical and
  28. political angles. Read up on various drug kingpins and cartels from the
  29. 20th century. Learn everything you can about how they rose and fell (
  30. you can safety ignore all the parts about intelligence agencies backing
  31. one drug cartel over another, because that's not going to happen to
  32. you). Once you've got a good command of that, read everything you can
  33. about busted drug market operators and branch out into cybercrime
  34. investigations as well. It wouldn't hurt to make yourself familiar with
  35. law enforcement and intelligence agency tactics either. You'll find that
  36. virtually all drug kingpins either get murdered or go to prison. Let
  37. those lessons sink in, then find a good drug lawyer and make plans for
  38. being able to pay them when The Man seizes everything you own. While
  39. you're dreaming big about making fat stacks of fake internet money, do
  40. some research on Mutual Legal Assistance Treaties and extradition treaties.
  41.  
  42. Mutual Legal Assistance Treaties (MLATs) are self-explanatory. Country A
  43. will help Country B do whatever it takes to aid a cybercrime
  44. investigation should some aspect of the crime bleed over into Country A.
  45. Figure out which countries don't provide legal assistance to your
  46. country in these cases, then find hosting services that are based there.
  47. You'll shorten this list by determining which hosts allow tor, or at
  48. least don't explicitly forbid it in their Terms of Service (you don't
  49. care about exit bandwidth. You just want relays. Remember this for later
  50. in the article). Last but not least, sort out which hosts accept payment
  51. options that don't make you sweat bullets over the fact that the NSA has
  52. been monitoring global financial transactions since at least the 1970s.
  53. You will want to avoid any host that advertises itself as bulletproof --
  54. they'll probably kit your box and siphon everything of value, in
  55. addition to overcharging you for the privilege of running on older
  56. hardware -- and any host which sells a cheap VPS and promises to
  57. guarantee your privacy.
  58.  
  59. Extradition treaties mean that if you're in Country A and do something
  60. that makes Country B want to prosecute you, Country A is most likely
  61. going to give you a one way ticket to Country B. If or when your box
  62. gets seized and you know the heat is on, you're going to want to beat it
  63. to a place that won't send you back, where you will presumably live out
  64. the rest of your days. Just make sure you've made enough money to grease
  65. all the right palms in your new life, or the road ahead may be extremely
  66. bumpy. If you're smart, you'll permanently move to this country well
  67. before you have any trouble with law enforcement.
  68.  
  69. One last thing before moving on: Don't be so stupid as to attempt to
  70. hire a hitman to kill anyone. Murder-related charges have no statute of
  71. limitations, which means you won't get to write a tell-all book about
  72. what a sly bastard you are when this wild ride is a distant memory. If
  73. you've reached a point in your new career where murdering people makes
  74. sense, it's time to walk away. Don't get corrupted like Dread Pirate
  75. Roberts.
  76.  
  77. 2. Technical
  78.  
  79. This section tries to be as operating system independent as possible.
  80. You'll want to consult the documentation of your OS for specifics. The
  81. technical side of running a hidden service and not getting owned by cops
  82. is a lot harder than just installing stuff and crossing your fingers.
  83. The recommendations in this section WILL NOT protect you from 0days in
  84. the wild, but should help somewhat with damage control. Remember, if
  85. they want to own your hidden service, it will probably happen eventually.
  86.  
  87. Before you even think about installing bitwasp and tor, you need to
  88. really understand how tor works. Go to freehaven.net and read the white
  89. papers until your eyes glaze over, then continue reading until you're
  90. out of papers to read. Pay particular attention to the hidden service
  91. papers. If you feel like you didn't understand something, come back to
  92. that paper again when you have more knowledge. A lot of the papers
  93. explain some of the same concepts with slight differences in the intros.
  94. Don't skim over them, because you might read someone's rewording that
  95. will clarify an idea for you. Check back with freehaven regularly. Once
  96. you're up to speed, a good next step is to keep up with the tor
  97. project's mailing lists. [1]
  98.  
  99. While you're doing all of this reading, it's (mostly) safe to go ahead
  100. and install tor on a box on your local network, purely for
  101. experimentation. Keep in mind that the NSA will start scooping up all of
  102. your packets simply because you visited torproject.org. That means don't
  103. post code questions related your drug market on Stack Exchange, if you
  104. want to avoid giving The Man morsels he can use for parallel
  105. construction. Once you've gotten hidden services working for http and
  106. ssh, you're going to take the first baby step towards evading casual
  107. discovery: Bind your hidden services to localhost and restart them.
  108.  
  109. The next step in your journey towards changing the drug business forever
  110. is to grab the transparent proxying firewall rules for your operating
  111. system to make sure they work. [2] They will guard against attacks that
  112. cause your box to send packets to a box the attacker controls, which is
  113. useful in thwarting attempts to get the box IP. You may wish to have a
  114. setup similar to an anonymous middle box, preferably without public IPs
  115. where possible, so if your application gets rooted tor isn't affected.
  116.  
  117. Speaking of applications, do everything you can to ensure that the
  118. application code you use to power your hidden service isn't made of
  119. Swiss cheese and used bandaids. To protect against other types of
  120. attacks, you will want to identify any pre-compiled software that your
  121. users will touch and compile it yourself with hardening-wrapper or it's
  122. equivalent, plus any custom flags you want to use. If you keep
  123. vulnerabilities from the application and server to a minimum, your
  124. biggest worries will be tor-related.
  125.  
  126. You will only connect to your production box via a hidden service. It's
  127. a good idea to get into that habit early. The only time deviating from
  128. this pattern is acceptable is when you have to upgrade tor, at which
  129. time you'll want to have a script ready that drops your firewall rules
  130. and unbinds ssh from localhost just long enough for you to login, do the
  131. upgrade, re-apply the firewall rules and bind ssh to localhost again. If
  132. you're not ready to deal with the latency, you're not ready to do any of
  133. this. Don't forget to transparently proxy the machine you use too, so
  134. you don't slip up by mistake.
  135.  
  136. On the subject of the machine, you need to automate the process of both
  137. setting up your hidden service and of destroying it. Proactively change
  138. servers every few months, in order to frustrate law enforcement attempts
  139. to locate and seize your site. Your creation script should install
  140. everything your site needs as well as all configuration files. Your
  141. clean-up script needs to destroy all evidence, preferably with a tool
  142. like srm.
  143.  
  144. Regarding time-related issues: Always select either UTC or a time zone
  145. that doesn't match the box's location. You will also do this to the box
  146. you use to interact with your hidden service every day. If you read the
  147. whitepapers, you will probably note a recurring theme of clock
  148. skew-related attacks, mostly directed at clients, in some of the older
  149. papers. Tor won't even start if the clock skew is off by too much.
  150.  
  151. If you want to have some fun at the expense of business in the short
  152. term, intentionally take your service offline periodically in order to
  153. mess up attempts to match your downtime with public information. If
  154. you're the kind of person with access to botnets, you could DDoS
  155. (Distributed Denial of Service) some provider at the same time on the
  156. off chance that someone might connect the dots. This counter-measure
  157. will only work on researchers looking at public info, not nation state
  158. actors with an ax to grind.
  159.  
  160. I've saved some of the hardest stuff for the last part of this section.
  161. It's hard because you have to make choices and it's unclear which of
  162. those choices are the best. It's a bit like a Choose Your Own Adventure
  163. book. In that spirit, all I can do is lay out the possibilities in as
  164. much of a Herodotus-like way as possible.
  165.  
  166. One thing you have to consider is whether you want to run your hidden
  167. service as a relay or not. If it's a relay, you'll have extra cover
  168. traffic from other innocent tor users. But if your relay goes down at
  169. the same time as your hidden service, it will be far more likely to be
  170. noticed. Federal criminal complaints make a big deal of seized hidden
  171. services not being relays, but three relays were taken down at around
  172. the same time as Operation Onymous, so that's not a guaranteed defense.
  173. The choice is yours.
  174.  
  175. Remember when I said to take note of hosts that don't ban tor outright?
  176. This is the part where you give back to the community in the form of tor
  177. relays or bridges. [3] The feel-good aspects of this move are along the
  178. same lines as drug barons who build schools and hospitals, but this is
  179. more immediately self-serving. You're going buy several servers to set
  180. up strictly as relays or bridges, then configure your hidden service box
  181. to use only those relays or bridges to enter the tor network. Here's
  182. where things start to get theoretical.
  183.  
  184. If an adversary is running a guard node discovery attack -- in which an
  185. attacker is able to determine the node you're using to enter the tor
  186. network -- against your service and you're using your own relays as
  187. entry nodes, the damage they can do will be limited to DoS (Denial of
  188. Service) if your relays are not linkable to your identity. However, if
  189. you're entering the tor network with bridge nodes, an attacker will
  190. probably say "WTF?" at first unless they determine they've found a
  191. bridge node. Bridge nodes don't use nearly as much bandwidth as relays
  192. because there is not a public list of them, so an intelligence agency
  193. would have less traffic to sift through, which makes correlation easier.
  194. On the other hand, using bridge nodes also allows you to run obfsproxy
  195. [4] on both the bridges and your hidden service. obfsproxy allows you to
  196. make tor traffic appear to be another type of traffic, which is a good
  197. defense against non-Five Eyes entities. For example, your hosting
  198. provider may decide to monitor for tor traffic for their own reasons.
  199. Just make sure your relays/bridges aren't linkable to you or to each other.
  200.  
  201. One last thing about guard node discovery attacks: The Naval Research
  202. Lab published a paper in July 2014 about the "Sniper Attack," [5] which
  203. in short works like this: The attacker discovers your guard nodes, then
  204. uses an amplified DoS trick to exhaust the memory on all of your nodes.
  205. The attacker keeps doing this until your hidden service uses guard nodes
  206. that they control. Then it's game over. If your hidden service's entry
  207. nodes are all specified in your torrc file and they get DoSed, your
  208. service will go offline. In this situation, if all of your relays are
  209. down, you essentially have an early warning canary that you're being
  210. targeted. In other words: This is the best possible time to book your
  211. one-way ticket to your chosen non-extradition country. For those of you
  212. with a background in writing exploits, this is similar in principle to
  213. how stack smashing protection will render some exploits either unable to
  214. function or will turn them into a DoS. Personally, I recommend an
  215. ever-changing list of relays or bridges. Add a few new ones at a
  216. pre-determined interval, and gradually let old ones go unpaid.
  217.  
  218. 3. Operational Security
  219.  
  220. This section is critical, especially when things start to break down. If
  221. everything else goes bad, following this section closely or not could be
  222. the difference between freedom and imprisonment.
  223.  
  224. This is important enough to re-state: Transparently proxy your tor
  225. computer. This is a good first line of defense, but it is far from the
  226. only way to protect yourself.
  227.  
  228. Do not contaminate your regular identity with your Onion Land identity.
  229. You're an aspiring drug kingpin. Go out and pay cash for another
  230. computer. It doesn't have to be the best or most expensive, but it needs
  231. to be able to run Linux. For additional safety, don't lord over your new
  232. onion empire from your mother's basement, or any location normally
  233. associated with you. Leave your phone behind when you head out to manage
  234. your enterprise so you aren't tracked by cell towers. Last but not least
  235. for this paragraph, don't talk about the same subjects across identities
  236. and take counter-measures to alter your writing style.
  237.  
  238. Don't log any communications, ever. If you get busted and have logs of
  239. conversations, the feds will use them to bust other people. Logs are for
  240. undercover cops and informants, and have no legitimate use for someone
  241. in your position. Keep it in your head or don't keep it at all.
  242.  
  243. At some point, your enterprise is going to have to take on employees.
  244. Pulling a DPR move and demanding to see ID from high-volume sellers and
  245. employees will just make most people think you're a fed, which will
  246. leave your potential hiring pool full of dumbasses who haven't even
  247. tried to think any of this out. It will also make it easier for the feds
  248. to arrest your employees after they get done arresting you. If your
  249. enterprise is criminal in nature -- whether you're selling illegal goods
  250. and services or you're in a repressive country that likes to re-educate
  251. and/or kill dissidents -- an excellent way of flushing out cops is to
  252. force them to get their hands not just dirty, but filthy, as quickly as
  253. possible. Don't give them time to get authorization to commit a crime
  254. spree. If there's a significant amount of time between when they're
  255. given crimes to commit and the commission of those crimes, you need to
  256. assume you've got an undercover cop on your hands and disengage. If they
  257. commit the crime(s) more or less instantly, you should be fine unless
  258. you've got the next Master Splynter on your trail. [6]
  259.  
  260. Disinformation is critical to your continued freedom. Give barium meat
  261. tests to your contacts liberally. [7] It doesn't matter if they realize
  262. they're being tested. Make sure that if you're caught making small talk,
  263. you inject false details about yourself and your life. You don't want to
  264. be like Ernest Lehmitz, a German spy during World War II who sent
  265. otherwise boring letters about himself containing hidden writing about
  266. ship movements. He got caught because the non-secret portion of his
  267. letters gave up various minor personal details the FBI correlated and
  268. used to find him after intercepting just 12 letters. Spreading
  269. disinformation about yourself takes time, but after a while the tapestry
  270. of deceptions will practically weave itself.
  271.  
  272. Ensure that your communications and data are encrypted in transit and at
  273. rest whenever applicable. This means PGP for e-mail and OTR for instant
  274. messaging conversations. If you have to give data to someone, encrypt it
  275. first. For the tor-only box you use for interacting with your hidden
  276. service, full disk encryption is required. Make a password that's as
  277. long and complex as you can remember ("chippy1337" is not an example of
  278. a good password). Last but not least, when you're done using your
  279. dedicated tor computer, boot into memtest86+. Memtest86+ is a tool for
  280. checking RAM for errors, but in order to do that it has to write into
  281. each address. Doing so essentially erases the contents of the RAM.
  282. Turning your computer off isn't good enough. [8] If you're planning to
  283. use TAILS, it will scrub the RAM for you automatically when you shut
  284. down. Once your RAM is clean, remove the power cord and any batteries if
  285. you're feeling extra paranoid. The chips will eventually lose any
  286. information that is still stored in them, which includes your key. The
  287. feds can do a pre-dawn raid if they want, but if you follow this step
  288. and refuse to disclose your password, you'll make James Comey cry like a
  289. small child.
  290.  
  291. Use fake info when signing up for hosting services. Obfuscate the money
  292. trail as much as possible and supply fake billing info. I prefer
  293. registering as criminals who are on the run, high government officials,
  294. or people I dislike. If your box gets seized and your hosting company
  295. coughs up the info, or if a hacking group steals your provider's
  296. customer database (It happens more often than you'd think), your hosting
  297. information needs to lead to a dead end. All signs in Operation Onymous
  298. point to operators being IDed because they used real info to register
  299. for hosting service and then their box got decloaked.
  300.  
  301. Speaking of money, you're going to have to figure out how to launder
  302. your newfound assets, and we're not talking about using a couple bitcoin
  303. laundering services and calling it a day. You also shouldn't go out and
  304. buy a Tesla. Living beyond your means is a key red flag that triggers
  305. financial and fraud investigations. Remember, money is just another
  306. attack vector. Washing ill-gotten gains is a time-honored drug business
  307. tradition and one that you would be a fool not to engage in. You can
  308. only use your hard-won profits to send shitexpress.com packages to
  309. people you don't like so many times.
  310.  
  311. Take-away: If you rely only on tor to protect yourself, you're going to
  312. get owned and people like me are going to laugh at you. Remember that
  313. someone out there is always watching, and know when to walk away. Do try
  314. to stay safe while breaking the law. In the words of Sam Spade, "Success
  315. to crime!"
  316.  
  317.  
  318.  
  319. Sources:
  320. [1] https://lists.torproject.org/cgi-bin/mailman/listinfo
  321. [2] https://trac.torproject.org/projects/tor/wiki/doc/TransparentProxy
  322. [3] https://www.torproject.org/docs/bridges
  323. [4] https://www.torproject.org/projects/obfsproxy.html.en
  324. [5]
  325. http://www.nrl.navy.mil/itd/chacs/biblio/sniper-attack-anonymously-deanonymizing-and-disabling-tor-network
  326. [6] http://www.pcworld.com/article/158005/article.html
  327. [7] https://en.wikipedia.org/w/index.php?title=Canary_trap&oldid=624932671
  328. [8]
  329. https://freedom-to-tinker.com/blog/felten/new-research-result-cold-boot-attacks-disk-encryption/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement