Advertisement
Guest User

Creating a drug darknet market Tutorial/Tips/Tricks

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