<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mike McCabe on Medium]]></title>
        <description><![CDATA[Stories by Mike McCabe on Medium]]></description>
        <link>https://medium.com/@mccabe615?source=rss-4947e5b3ae05------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ZF5zWx_71HlN9CDbpzO6Yg.jpeg</url>
            <title>Stories by Mike McCabe on Medium</title>
            <link>https://medium.com/@mccabe615?source=rss-4947e5b3ae05------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:22:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mccabe615/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Proxying Burp Traffic]]></title>
            <link>https://medium.com/@mccabe615/proxying-burp-traffic-e6e7a8adc101?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6e7a8adc101</guid>
            <category><![CDATA[socks]]></category>
            <category><![CDATA[burp]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[appsec]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Sat, 25 Aug 2018 18:24:44 GMT</pubDate>
            <atom:updated>2018-08-25T18:24:44.863Z</atom:updated>
            <content:encoded><![CDATA[<p>During application assessments often you need to provide testing IPs so the client knows if the traffic is legitimate testing or not. And while clients often whitelist IPs at the WAF level to avoid testers getting blocked, it still happens. Nothing would be worse than doing a test for Amazon.com then getting blocked!</p><p>Burp supports using a Socks proxy for all traffic. We’ll use this and SSH dynamic port forwarding to send all traffic through another machine. A quick explainer of dynamic port forwarding:</p><pre>Dynamic port forwarding turns your SSH client into a SOCKS proxy server. SOCKS is a little-known but widely-implemented protocol for programs to request any Internet connection through a proxy server.</pre><p>I often use a Digital Ocean Ubuntu box to use as my proxy. The nice thing about SSH port forwarding is that you don’t need to setup anything on the box to start using it as a proxy. The most I do is make sure it’s up to date and put a firewall on it to limit SSH access to my IP.</p><p>Once you have a box setup and an IP available to connect to, you can start your tunnel with the command below.</p><pre>ssh -C -D 8089 &lt;user&gt;@&lt;IP&gt;</pre><p>In terms of flags -C will turn on compression for the SSH connection. -D setups up dynamic port forwarding. 8089 will be the local port you’ll use for Burp’s Socks settings.</p><p>Once the connection is setup, we set the Socks proxy settings in Burp User Options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yguVPhWaq3RXYzHzmAHItQ.png" /><figcaption>Burp User Options</figcaption></figure><p>Once we have everything setup we can use ipchicken.com to check our IP with the proxy on and off. I use Firefox with FoxyProxy setup to send traffic through Burp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENUjp83uzh0_7hYYNVFV-g.png" /><figcaption>Proxy turned on</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYE59Aqp4-QsVAiErHj1dA.png" /><figcaption>Proxy turned off</figcaption></figure><p>And just like that, we can funnel all of our testing traffic through a server!</p><p>Thanks for reading!</p><p>More info:</p><p><a href="https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding">SSH/OpenSSH/PortForwarding</a></p><p><a href="https://portswigger.net/burp/documentation/desktop/options/connections">https://portswigger.net/burp/documentation/desktop/options/connections</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6e7a8adc101" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating S3 Honey Pots]]></title>
            <link>https://medium.com/@mccabe615/creating-s3-honey-pots-26128a2aaea?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/26128a2aaea</guid>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Fri, 26 Jan 2018 02:43:49 GMT</pubDate>
            <atom:updated>2018-01-26T03:22:02.114Z</atom:updated>
            <content:encoded><![CDATA[<p>Most people are familiar with the concept of a honey pot. A fake resource/system that replicates some vulnerable system. It sits on the internet and can be used to either distract attackers or gain information on attacker’s techniques.</p><p>In this case we’re creating a reverse honey pot. We’re not waiting for an attacker to hack our system, we’re waiting for a user to make a mistake. When creating an <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html">S3 bucket</a> we can choose any name as long as it doesn’t conflict with another bucket name. Companies often use easy to recognize names for buckets, Facebook may use a bucket name like Facebook-files. Since there are no restrictions on the names we don’t have to work at Facebook to create facebook-files bucket.</p><p>So first up we want to create some buckets. You can choose some names that you think a company would use or your own company name to monitor if people are using random buckets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uFYJsNG0EmPOYIWl8pC-aw.png" /><figcaption>S3 Bucket Name</figcaption></figure><p>One option is to enable logging of all actions for the buckets. We’ll also be setting up email notifications but this will track events to another bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qtDBxg0vLhA0j_zK95WJMA.png" /><figcaption>S3 Logging</figcaption></figure><p>Now complete the bucket creation process. Next we’ll want to set the permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYO-QuZ-1RI36PfEmr6RiQ.png" /><figcaption>S3 Bucket Permissions</figcaption></figure><p>We’re creating a public bucket so we need to enable public read and write. You do not want to enable public read and write of the bucket permissions as we should only control those.</p><p>Next we’ll create an SNS topic that will send emails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DpQz8-K6cB4Hc5bM8jqTaQ.png" /><figcaption>SNS Subscription</figcaption></figure><p>For the SNS topic, we’ll use email as the protocol and whatever email you want to receive emails through. Complete the subscription. You’ll then need to confirm the email account through the link that will be sent to you.</p><p>Lastly, we’ll setup an event on the S3 bucket that will use SNS to send us an email</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gkiSBwolloVSYR-sMogaQ.png" /><figcaption>S3 Events</figcaption></figure><p>We name the event and set the SNS topic to the topic to the one we created earlier. We want to capture create and delete actions.</p><p>Once we have this all setup we can test it out by uploading a file to the bucket and we should be emailed about the event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*R7Zn5Q1LVRa1lCQec_oCXw.png" /><figcaption>Cleaned up json</figcaption></figure><p>So now we receive an email once a file is uploaded. I’ve cleaned up the json you receive. You see the name of the bucket and the file, test.txt.</p><p>We can now setup lots of buckets with common names and get alerted when users upload files to access them. This is a good way to catch if your AWS users or developers are making mistakes with S3 before sensitive data gets leaked.</p><p>Thanks to @cktricky, <a href="https://medium.com/u/937a10ff5bc0">Jerry Gamblin</a> and @matt_ahrens for reviewing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26128a2aaea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running NSP Offline]]></title>
            <link>https://medium.com/@mccabe615/running-nsp-offline-e38ff7ac57d4?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/e38ff7ac57d4</guid>
            <category><![CDATA[node-security-project]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Tue, 19 Sep 2017 17:29:57 GMT</pubDate>
            <atom:updated>2017-09-19T18:40:30.662Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://nodesecurity.io/opensource">Node Security Project</a> (nsp), the command line tool to check Javascript projects for use of insecure packages is a great way to start any assessment. It’s a quick and easy check to run. Recently, while performing an assessment I needed to run <em>nsp </em>against multiple applications while flying. Instead of paying a ridiculous amount for GoGo inflight wifi, I setup my laptop to be able to run <em>nsp</em> while offline.</p><p>You’ll need to do this setup before you lose internet access.</p><p>First you’ll need to create an <em>npm-shrinkwrap.json</em> for each project. From the <a href="https://docs.npmjs.com/cli/shrinkwrap">documentation</a>:</p><blockquote>This command repurposes <strong>package-lock.json</strong> into a publishable <strong>npm-shrinkwrap.json</strong> or simply creates a new one. The file created and updated by this command will then take precedence over any other existing or future <strong>package-lock.json</strong> files.</blockquote><pre>$ npm shrinkwrap</pre><p>If you run into errors you may need to follow the steps <a href="https://github.com/thewoolleyman/npm-shrinkwrap-helper">here</a> to get <em>npm shrinkwrap</em> to work.</p><p>Next we’ll need to download the <em>advisories.json</em> file that has all of the known insecure packages <em>nsp</em> checks. You can download this to your home directory and point <em>nsp</em> to it during the scan.</p><pre>$ curl -sS <a href="https://api.nodesecurity.io/*advisories*">https://api.nodesecurity.io/<em>advisories</em></a> -o ~/advisories.json</pre><p><em>One issue with this is that the Node Security API paginates by 100 for the advisories. We have to pull down all 384 (as of 9/19/17) advisories to make this actually effective. I’ll update this blog with a solution soon..</em></p><p>Finally, we’ll run <em>nsp</em> in offline mode. We need to pass in a couple options. You’ll need to have your <em>npm-shrinkwrap.json</em> in the same directory you’re running this from. You’ll pass in the location to the <em>advisories.json</em> as well.</p><pre>$ nsp check --offline --advisoriesPath=/path/to/advisories.json -o summary<br>(+) No known vulnerabilities found</pre><p>And we’re good!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e38ff7ac57d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Few of My Favorite Newsletters]]></title>
            <link>https://medium.com/@mccabe615/a-few-of-my-favorite-newsletters-a0a7569e4f62?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0a7569e4f62</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[newsletter]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Tue, 01 Aug 2017 16:51:27 GMT</pubDate>
            <atom:updated>2017-08-01T16:53:30.017Z</atom:updated>
            <content:encoded><![CDATA[<p>Despite the claims of emails sure demise, newsletter are having a renaissance. Besides Twitter, daily, weekly, and monthly newsletters are the place I get most of my tech news and articles from. The idea of curated news appeals to me versus digging through so many sources for the quality content. Here are a few of my favorite newsletter that I get the most out of.</p><p><strong>Hacker Newsletter</strong></p><p>Hacker Newsletter is a weekly curated list of some of the top articles from Hacker News. I don’t read Hacker News much, mainly because I don’t see a lot of content there that I’m interested in. Ironically, I end up opening a lot of the links in this newsletter. I enjoy the mix of technical, people news and just fun projects highlighted in it.</p><p><a href="http://www.hackernewsletter.com/">Hacker Newsletter - The Hacker News Newsletter</a></p><p><strong>Unsupervised Learning</strong></p><p>This weekly newsletter is put together by Daniel Miessler a security professional. There is a definite security slant to the newsletter but there are also a lot of non-security and non-tech articles. He also produces a podcast that accompanies the newsletter. I read the newsletter if I’m trying to parse out the content I’m interested quickly, otherwise I listen to the podcast to get a bit more depth on the topics.</p><p><a href="https://danielmiessler.com/podcast/">Unsupervised Learning</a></p><p><strong>Cooper Press</strong></p><p>Cooper isn’t a single newsletter but a collections of different newsletter on various topics. They’re mostly focused various development languages but have some on web operations and server-less as well. I subscribe to the Ruby, Golang, Node, Web Operations, Serverless and Javascript newsletters. I skim most of these other than the Web Operations newsletter. I may drop the Ruby newsletter, sign of the times I guess..</p><p><a href="https://cooperpress.com/publications/">Our Publications &amp; Email Newsletters - Cooperpress</a></p><p><strong>Daily Pnut</strong></p><p>This is a daily newsletter with a summary of the days news. I appreciate the background and continuity of the small writeups they give along with the links to articles. It’s a great way to keep up on US and world news daily.</p><p><a href="http://www.dailypnut.com/">http://www.dailypnut.com/</a></p><p><strong>Quora Digest</strong></p><p>Quora, the questions/answer site, has a daily email that has a list of various questions you may be interested. Not quite a newsletter but a way to get some insight into various topics. It does seem to strongly tailor the questions you see based on what you’ve viewed before so I suggest exploring more topics on your own besides what’s sent.</p><p><a href="https://www.quora.com/">https://www.quora.com/</a></p><p><strong>Finimize</strong></p><p>Finimize is a daily newsletter similar to Daily Pnut that gives you an update on a couple financial topics. I like how they break things down and give some context on the topics. The content is purely economic or finance related.</p><p><a href="https://www.finimize.com/">https://www.finimize.com/</a></p><p>Those are the newsletters I read the most but there are a few others that I’ve signed up for that have some decent content.</p><p><strong>The Journal</strong></p><p>The Journal is a monthly newsletter put together by Kevin Rose. I just signed up for this and have only received a couple issues but so far there is some content that seems interesting.</p><p><a href="http://www.thejournal.email/">The Journal, by Kevin Rose</a></p><p><strong>Benedict’s Newsletter</strong></p><p>This weekly newsletter is put together by Benedict Evens from Andreessen Horowitz (a16z). I only recently signed up for this but have been enjoying it so far. The focus is on technology but has content with various content as well. a16z also has a great newsletter recommend.</p><p><a href="http://ben-evans.com/newsletter/">Newsletter</a></p><p><a href="https://a16z.com/">https://a16z.com/</a></p><p>A few more worth checking out as well.</p><p><strong>Medium Daily Digest</strong></p><p><a href="https://medium.com/">https://medium.com</a></p><p><strong>Pocket Hits</strong></p><p><a href="https://getpocket.com/">https://getpocket.com</a></p><p>These two are daily digest of various articles from Pocket and Medium. I skim these quickly.</p><p><strong>SRE Weekly</strong></p><p>A weekly newsletter on Site/Service Reliability Engineering.</p><p><a href="http://sreweekly.com/sre-weekly-issue-83/">http://sreweekly.com/</a></p><p><strong>Security Newsletter</strong></p><p>Pretty self-explanatory. Generally some overlap with HackerNews Letter and Unsupervised learning.</p><p><a href="https://securitynewsletter.co/">https://securitynewsletter.co/</a></p><p><strong>Last Week in AWS</strong></p><p>Also self-explanatory.</p><p><a href="https://lastweekinaws.com/">https://lastweekinaws.com/</a></p><p><strong>Machine Learning Weekly</strong></p><p>Just signed up for this as well as I’m trying to learn more about ML.</p><p><a href="http://mlweekly.com/">http://mlweekly.com/</a></p><p>Whew! After reading through all those I usually have a million tabs open and Chrome is slowly killing my computer. I don’t have a great system for managing bookmarks yet. I generally try to read the content I’m most interested as soon as possible. For things I intend to read later I use a combination of PinBoard and Pocket but that’s usually where articles go to never be read. The other tool that’s helpful to stop Chrome from slowing everything down is OneTab. It’s a Chrome extension that will create a list of all the tabs you have open and close the tab. This doesn’t archive it like Pocket though.</p><p><a href="https://www.one-tab.com/">https://www.one-tab.com/</a></p><p>I hope you find this useful. Newsletter are a great way to keep up to date on what’s going on in tech and the world but also find more in-depth articles that are illuminating. Please comment with any other great newsletters you read.</p><p>Happy reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0a7569e4f62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is My Site Secure?]]></title>
            <link>https://medium.com/@mccabe615/is-my-site-secure-5ac77ec38343?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ac77ec38343</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Wed, 15 Mar 2017 14:07:05 GMT</pubDate>
            <atom:updated>2017-06-29T03:37:35.145Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A semi-comical hypothetical email chain with a consulting customer.</em></p><p><strong>Hey Dave,</strong></p><p><strong>Thanks for your work on our assessment. I had a couple questions.</strong></p><p><strong>Based on what you found, is our site secure?</strong></p><p><strong>-Bob</strong></p><p><em>Hey Bob,</em></p><p><em>In regards to the security of your site, it’s in pretty good shape. It is relatively simple and we didn’t find any major issues. With that said, if you addressed the findings that were discovered you’d be in great shape. Addressing those along with implementing some of the best practices, such as HSTS/CSP, we recommended will put you in a good position.</em></p><p><strong>But is it secure? -Bob</strong></p><p><em>Hey Bob,</em></p><p><em>Well, that’s hard to say. Being ‘secure’ isn’t necessarily a state one can reach just different levels of security. Based on what I said in my earlier email, your site is in a good state of security though.</em></p><p><strong>What would make it secure? -Bob</strong></p><p><em>Well, basic security hygiene. Ensure all data is encrypted at rest. Make sure the server is locked down, no open ports that aren’t needed. Remove any services or packages that aren’t needed. Make sure processes run at the lowest privilege needed. You could setup something like SELinux to further lock down access. The servers should be properly segmented from other networks. Make sure it’s getting regular patches. All basic steps that go a long way.</em></p><p><strong>Then it would be secure? -Bob</strong></p><p><em>Well, you could take it further and setup a web application firewall (WAF). A WAF is really a secondary control but can prove to make exploiting web app issues more difficult. You can setup an intrusion detection system (IDS). An IDS can help when you have been hacked to determine the data going out of your network. You can also use something like OSSEC for file integrity monitoring or a myriad of commercial solutions. Setup MFA for your users or even cert based auth.</em></p><p><strong>Then we’d be good? -Bob</strong></p><p><em>Well, there’s still a long way to go. You could use something like Cloudflare to give you DDoS protection. Some form of logging both in the application and server for any sensitive actions being performed. You could setup full time network and web app scanning to alert you to any findings. You could perform a red team exercise to see if there are other ways to access your servers and hack your site. You could setup a bug bounty to have external testers try to find any security issues in your site. You could put all of your developers through intensive secure coding workshops. Setup arduous change management process for your operations team to make sure no unapproved changes are implemented. Go through a rigorous architectural review of your network and application and make any adjustments.</em></p><p><strong>All done? -Bob</strong></p><p><em>Well, if you want to be really secure just delete the site.</em></p><p><strong>What? -Bob</strong></p><p><em>Yea, delete it. Then take the server and pull the hard drives out. Drill those out then throw them in a commercial shredder to finish the job. Go ahead and burn all your network gear that might have any cached user data. Contact all your customers and have them delete their browser caches and delete all proxy logs and caches. Contact Google and the other search engines to remove any cached data. Request deletion from the Way Back Machine.</em></p><p><strong>Then we’d be secure? -Bob</strong></p><p><em>Then you’d be secure, Bob.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ac77ec38343" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OS X/MacOS Security Tools]]></title>
            <link>https://medium.com/@mccabe615/os-x-macos-security-tools-bd0fedc61127?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd0fedc61127</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[os-x]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Mon, 02 Jan 2017 19:01:27 GMT</pubDate>
            <atom:updated>2017-01-02T19:01:27.275Z</atom:updated>
            <content:encoded><![CDATA[<p>Besides the obvious steps of turning on the firewall, using Filevault and some basic security settings, what more can you do to lock down OS X/MacOS? I’ve found a few security tool that help lock down and monitor your Mac. These tools are relatively cheap and give users a lot more visibility into what their computer is doing.</p><p>Lockdown by Objective-See ($free!) is a useful tool for creating a baseline of security for OS X/MacOS. It can be run in audit mode which shows you which security settings are on or off. Most of these are simple settings like enabled a screen saver, turning on the firewall but others are more subtle like disabling the IR receiver and Airdrop. Unfortunately, MacOS is not supported yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*lIoZQpMYFTidf-qSX4jaww.png" /><figcaption><a href="https://objective-see.com/products/lockdown.html">https://objective-see.com/products/lockdown.html</a></figcaption></figure><p>Little Snitch ($34.95) is a tool that’s been around for a long time. It monitors your network connections and allows you to set very fine grained controls on what’s allowed out. It can take quite a while to setup a policy but it’s quite interesting to see what is connecting to what. It also raises a lot of questions about what your software is doing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LW_2ted6ySaS4tMKXwyGXw.png" /><figcaption>Little Snitch permission request</figcaption></figure><p><a href="https://www.obdev.at/products/littlesnitch/index.html">Little Snitch</a></p><p>Litte Flocker ($14.99) is a tool from <a href="http://jzdziarski/">Jonathan Zdziarski</a> a well known iOS and OS X researcher. I’ll let the Little Flocker site describe what it does:</p><p><strong><em>Little Flocker</em></strong><em> is a utility for </em><strong><em>keeping your personal data safe</em></strong><em> from malware, trojans, back doors, misbehaving applications, and other threats to your computer’s security, by preventing any application from accessing your files without explicit permission. Little Flocker is an effective way to </em><strong><em>prevent silent exfiltration, encryption, or destruction of your data</em></strong><em>, and can help protect you in the event your system is compromised.</em></p><p>I’ve just started using Little Flocker so don’t have much feedback yet but have high hopes based on Zdziarski’s knowledge.</p><p><a href="https://www.littleflocker.com/">Little Flocker</a></p><p>These are just a few ways to tackle OS X/MacOS security. More can be done but this is a good baseline for securing OS X/MacOS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd0fedc61127" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Odd HSTS Behavior]]></title>
            <link>https://medium.com/@mccabe615/odd-hsts-behavior-f1bde5dca370?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1bde5dca370</guid>
            <category><![CDATA[hsts]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Tue, 30 Aug 2016 18:35:49 GMT</pubDate>
            <atom:updated>2016-08-30T18:35:49.918Z</atom:updated>
            <content:encoded><![CDATA[<p>While testing an app with an invalid cert (internal CA), I noticed some interesting behavior with HSTS and Firefox. The browser was ignoring an aspect of the HSTS RFC after an invalid cert was accepted.</p><p>Before that a bit of background..</p><p>HSTS is HTTP Strict Transport Security. It is a header passed from the server/application to the user. It tells the browser to only connect to the site over HTTPS. Even if the user explicitly types <a href="http://example.com/"><strong>http</strong>://example.com</a> if the site has sent an HSTS header (or it’s <a href="https://hstspreload.appspot.com/">preloaded</a>) the browser will upgrade the connection to HTTPS.</p><p>So while testing this app I followed this flow</p><ul><li>Access site while proxying traffic with trusted cert with Burp Suite</li><li>The browser sends back an HSTS header telling the browser to upgrade connections</li><li>I can browse the site normally</li></ul><p>Now..</p><p>If I disable the intercepting proxy I’ll get a cert error as expected. Interestingly, I do not have the option to access the site by adding an exception. Due to the site having HSTS enabled as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*vIKm2EyPFAdyZaerAOiphQ.png" /></figure><p>This is because Firefox has already received the HSTS header from the server. As outlined in the HSTS RFC, if HSTS is enabled the browser should not allow the user to access the site and Firefox does not allow you to add an exception.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*6cSqt8V4kX8uCk9k_9b3fw.png" /></figure><p>This is expected behavior as it’s outlined as part of the HSTS RFC.</p><p><a href="https://tools.ietf.org/html/rfc6797#page-27">RFC 6797 - HTTP Strict Transport Security (HSTS)</a></p><p>What I find interesting is that, although not allowing an exception when a bad cert and HSTS is a good security practice, it is not enforced by the browser. I believe it would only be enforced if the site was using HSTS preloading so the user has no chance to add an exception. I would assume that once the user adds an exception for the cert the browser would still enforce the HSTS restriction that does not allow bad certs. From my limited testing Chrome also has the same behavior.</p><p>With the proliferation of HTTP security headers, the trade off between ease of use and enforcing RFC presents interesting behavior.</p><p>Thanks to</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1bde5dca370" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ugly Ruby]]></title>
            <link>https://medium.com/@mccabe615/ugly-ruby-d6b0a43704d7?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6b0a43704d7</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Mon, 01 Feb 2016 19:05:59 GMT</pubDate>
            <atom:updated>2016-02-04T21:10:13.344Z</atom:updated>
            <content:encoded><![CDATA[<p>I like Ruby. It’s a pleasant language to code in and review most of the time. But I was reading a post about some Ruby oddities that had some “interesting” ways to do certain things. Based on that I wanted to create some ugly and inscrutable Ruby.</p><pre>$-_=’=’;@<a href="https://twitter.com/_">@_</a>=-&gt;(_){_*100};@<a href="https://twitter.com/_">@_</a>.[]($-_);</pre><p>To break this down I’ll list out the various parts of the code.</p><ul><li>$-_ is a global variable with the name of -_</li><li>= is the assignment operator</li><li>The value of ‘=’ is assigned to ‘$-_’</li><li>; is a separator between code expressions</li><li>@@_ is a class variable with the name ‘_’</li><li>-&gt;(_){_*100} is a lambda that accepts a variable ‘_’ then multiplies it by 100</li><li>@@_.[]($-_) this call the lambda with ‘.[]’ and passes the value of ‘$-_’ which is ‘=’</li><li>; to end the code block</li><li>Finish!</li></ul><p>So, what’s it do? Nothing really. Without the final ‘;’ it would print ‘=’ 100 times. With ‘;’ it prints nothing. I wanted to get the code down to no alphanumeric characters. I needed something simple to generate a number to multiple with. At first I thought of trying to shell out and get the return status of the last bash command with $? but using `` to exec returned an error of command not found. Then I tried $$ to get the PID of the Ruby code as it was running but same result. Then I had a duh moment and realized I could just use $$ inside of Ruby to accomplish the same thing. So the final code looks like this:</p><pre>$-_=’=’;@<a href="https://twitter.com/_">@_</a>=-&gt;(_){_*$$};@<a href="https://twitter.com/_">@_</a>.[]($-_);</pre><p>Now instead of multiplying $-_ by 100 it multiplies it by the PID of the code running.</p><p>What have I accomplished? Nothing but it was interesting to write some very ugly Ruby code when you try to write clean code otherwise. Ruby does lend itself to very clean and understandable code but that doesn’t mean it can’t be ugly.</p><p>Here is a more readable version of the code:</p><pre>#assign &quot;=&quot; to char<br>char = “=&quot;</pre><pre>#get PID of process<br>pid = $$</pre><pre>#create lambda that does the multiplication<br>lamb = -&gt;(var){var * pid}</pre><pre>#call the lambda with the char<br>lamb.call(char)</pre><p>Thanks to <a href="https://twitter.com/erniemiller">Ernie Miller</a> for a review of this post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6b0a43704d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working & RSI]]></title>
            <link>https://medium.com/@mccabe615/rsi-sucks-697485146a5a?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/697485146a5a</guid>
            <category><![CDATA[rsi]]></category>
            <category><![CDATA[keyboard]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Mon, 25 Jan 2016 02:03:28 GMT</pubDate>
            <atom:updated>2018-08-26T15:59:43.963Z</atom:updated>
            <content:encoded><![CDATA[<p>About 9 months ago I developed a pain in center of my palm in my left hand while using my computer. The pain started as an ache then grew into something that would keep me up at night. I work in application security and spend a lot of time at a computer for work and more for personal projects. I spend easily 12 hours a day on a computer. I thought that I was experiencing <a href="http://www.mayoclinic.org/diseases-conditions/carpal-tunnel-syndrome/basics/definition/con-20030332">carpal tunnel syndrome</a>, the common cause of hand and wrist pain for heavy computer users. The pain continued and got worse over the next few months. Being stubborn, I didn’t immediately see a doctor, instead I bought a cheap <a href="http://www.amazon.com/Mueller-Fitted-Wrist-Brace-Medium/dp/B0027VGB4Y/ref=sr_1_3?ie=UTF8&amp;qid=1453666872&amp;sr=8-3&amp;keywords=wrist+brace">wrist brace</a> to see if that would help. At first it did but the pain still continued to get worse after a time. I finally caved in and saw an orthopedist. After a quick test of my wrist for carpal tunnel that didn’t result in the typical tingling symptoms, he prescribed some medicine and said to adjust my workspace to see if that would help.</p><p>I was using an Apple keyboard and trackpad. The Apple keyboard is a pretty decent keyboard but it is not very ergonomic. The weight of my arms and hands laid squarely on the center of my palm where the pain was. After struggling to find any adjustments I could make to my setup I started looking for an ergonomic keyboard.</p><p>Although I didn’t love the idea of spending a huge amount on a keyboard I found a few models that seemed decent. First I tried a Microsoft ergonomic keyboard; the Sculpt Ergonomic. At only ~$70 it’s not too bad.</p><p><a href="http://www.amazon.com/gp/product/B00CYX26BC">Microsoft Sculpt Ergonomic Keyboard for Business (5KV-00001)</a></p><p>I actually quite like this keyboard at first. I didn’t have to adjust my typing too much and with <a href="https://support.apple.com/kb/PH18422?locale=en_US">OS X modifier keys</a> I could make it mirror my Apple keyboard pretty well. The main issue I found with this keyboard was that my left palm would rest right on the end of the pad and caused the same pain as before. There were some minor annoyances with the lack of proper media keys as well. So I started looking for an alternative.</p><p>I then tried out the <a href="http://www.kinesis-ergo.com/shop/freestyle2-blue-mac/">Kinesis Freestyle2 Blue</a> for MAC.</p><p><a href="http://www.kinesis-ergo.com/shop/freestyle2-blue-mac/">Freestyle2 Blue for MacBluetooth - Kinesis Corporation</a></p><p>The freestyle offers a lot of layouts to better fit what’s comfortable for you. You can have various amounts of separation and with the optional accessory kit you can have three settings of ‘tenting’ and great palm supports. I highly recommend the accessory kit.</p><p>My (cleaned up<em>)</em> setup:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJYOYrfXVoR3TUeBHDfRLg.jpeg" /></figure><p>I’ve tried the various tenting settings and have been using the highest setting recently. The quality of the keyboard is a bit lacking, especially for the price tag but the configurability is key. The click of the keys reminds me of my old <a href="http://www.amazon.com/Dell-Enhanced-Black-Keyboard-SK-8115/dp/B00496FELQ">Dell keyboard</a>. The keyboard works well enough and has about the same layout as my Apple keyboard and extra hotkey keys on the left to reduce mouse usage. I haven’t used them once though.. I haven’t been using it long enough to comment on how long the battery lasts but I’ve had no issues so far. The tenting helps reduce pressure directly on my palm. This has greatly reduced the pain after typing all day. It hasn’t completely stopped the pain though.</p><p>Kinesis also has another keyboard that’s received great reviews by people suffering from the same issues; The Advantage:</p><p><a href="http://www.kinesis-ergo.com/shop/advantage-for-pc-mac/">Advantage for PC &amp; Mac - Kinesis Corporation</a></p><p>I haven’t tried this keyboard but have read a few reviews that rave about it and how ergonomic it is. If the Freestyle doesn’t work out I may give it a shot.</p><p>Another solution I found is a piece of Software called <a href="http://rsiguard.remedyinteractive.com/">RSIGuard</a>. RSIGuard reminds you to take breaks at set intervals. By default those are every 50 minutes but it’s adjustable. RSIGuard is a bit pricey at $65, especially for a piece of software that isn’t the cleanest design and a bit buggy but I think it’s worth the money. RSIGuard will tell you to take a break and do some stretches, stand up and look around to loosen up. Even without RSI I think it’s a good tool to break up the monotony of working for long stretches.</p><p>So, to wrap up, RSI sucks. It’s caused a decent bit of pain, limited my ability to work and is not the easiest issue to fix. I’m still working on figuring out how to limit the issue but I’ve made a good bit of progress to reduce the pain and start healing. If I had addressed the issue sooner I think I would have healed much faster and dealt with less pain. Injuries like this are nothing to mess with and has forced many people to change careers. Hopefully some of this can be useful to someone else dealing with similar issues.</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=697485146a5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My OSX Setup Process]]></title>
            <link>https://medium.com/@mccabe615/my-osx-setup-process-85179ab97370?source=rss-4947e5b3ae05------2</link>
            <guid isPermaLink="false">https://medium.com/p/85179ab97370</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[os-x]]></category>
            <category><![CDATA[homebrew]]></category>
            <dc:creator><![CDATA[Mike McCabe]]></dc:creator>
            <pubDate>Tue, 01 Dec 2015 03:21:39 GMT</pubDate>
            <atom:updated>2017-04-19T15:37:07.458Z</atom:updated>
            <content:encoded><![CDATA[<p>After just setting up a new work laptop and then needing to do the same for a personal computer, I decided to document it. Long term, I’d like to automate parts of this, but baby steps.</p><ul><li>Sign into your AppleID (needed for App Store)</li><li>Install Xcode</li><li>Install Command Line Tools</li></ul><pre><em>xcode-select — install</em></pre><ul><li>Download purchased apps in AppStore</li><li>Setup Hot Corners for screen saver</li></ul><p>I setup the following to quickly lock my screen and lock the computer. This is good security practice and helpful to prevent prank loving co-workers..</p><p>Setting Hot Corner to put display to sleep.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*o3Y5_zeL2OfBYTb5kG4aRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*3RSNakOOsXyZIhsXwuGDeQ.png" /><figcaption>A swipe to the bottom right and the computer locks.</figcaption></figure><p>The computer will lock as soon as the screen goes to sleep.</p><p>Further security stuff..</p><p>Turn on Filevault and Firewall</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*SpltWrE6rqacY_N6sv5bXA.png" /></figure><p>Now the fun starts..</p><p>Install Homebrew</p><pre>ruby -e “$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/master/install">https://raw.githubusercontent.com/Homebrew/install/master/install</a>)&quot;</pre><p>Install Brew Cask which will allow installation of binary apps such as Chrome. This makes a huge difference in the amount of time it takes to get these apps installed.</p><pre>brew install caskroom/cask/brew-cask</pre><p>Start installing all the apps. This part should be automated at some point.</p><pre>brew install Caskroom/cask/1password</pre><pre>brew install Caskroom/cask/dropbox</pre><pre>#sync 1Password vault from Dropbox and sign into all your accounts.</pre><pre>#I use Firefox for app testing<br>brew install Caskroom/cask/firefox</pre><pre>#Spectacle is a great app for window management with hot keys<br>brew install Caskroom/cask/spectacle</pre><pre>#Flux changes the dimness and color of your screen to adjust to the time of day<br>brew install Caskroom/cask/flux</pre><pre>brew install Caskroom/cask/transmit</pre><pre>#dev stuff<br>brew install git</pre><pre>#switched away from RVM and digging chruby<br>brew install chruby</pre><pre>brew install ruby-install</pre><pre>ruby-install ruby</pre><pre>#I use all three for different languages<br>brew install Caskroom/cask/sublime-text</pre><pre>brew install Caskroom/cask/atom</pre><pre>brew install Caskroom/cask/textmate</pre><pre>brew install Caskroom/cask/typora</pre><pre>#DB stuff<br>brew install mysql</pre><pre>brew install Caskroom/cask/sequel-pro</pre><pre>sudo gem update — system</pre><p>More to come..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85179ab97370" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>