<?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 Ronald Eddings on Medium]]></title>
        <description><![CDATA[Stories by Ronald Eddings on Medium]]></description>
        <link>https://medium.com/@ronaldeddings?source=rss-f54a5d83ac51------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*4VoMceZEjetSywrdNFnMUg.jpeg</url>
            <title>Stories by Ronald Eddings on Medium</title>
            <link>https://medium.com/@ronaldeddings?source=rss-f54a5d83ac51------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:56:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ronaldeddings/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[Security Architecture Tips of The Week #1]]></title>
            <link>https://medium.com/hackervalleystudio/security-architecture-tips-of-the-week-1-10b1f159b297?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/10b1f159b297</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Thu, 24 Oct 2019 20:30:05 GMT</pubDate>
            <atom:updated>2019-10-24T20:30:05.502Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TleAKqpdDgwX3x3xYUoD5A.png" /></figure><p>Earlier this week I was challenged by my SecDevOpsAI partner in crime <a href="https://medium.com/u/c013b316b7d7">Chris Cochran</a> to share 100 tips that I’ve learned as a Security Architect. I plan to share all 100 tips in articles, videos, and podcast episodes — Each week I’ll share 7 tips in a complete article. My goal is to deliver Security Architecture best practices and share many of the lessons that I’ve learned over time.</p><h3>Security Architecture Tip 1/100 — What is Security Architecture?</h3><p>There are many definitions of this term — Wikipedia’s definition of architecture works great with some tweaking — “planning, designing, and constructing ̶b̶u̶i̶l̶d̶i̶n̶g̶s̶ Security Controls or any other ̶s̶t̶r̶u̶c̶t̶u̶r̶e̶s̶ Security Policy, Standard, or Guideline”. With that said, the responsibilities of a Security Architect can be quite vast. In my role as a Security Architect, I spend a large amount of my planning, designing and engineering automated workflows for Incident Response and Threat Hunting. This has required me to become an expert in SIEM, Endpoint Detection and Response (EDR), Case Management, Threat Intelligence, and collaborative analyst workspaces (ChatOps). This is not an exhaustive list of domains — in fact, this list keeps growing as analysts and engineers learn new ways to respond to security related events.</p><h3>Security Architecture Tip 2/100 — Planning</h3><p>This tip is almost too simple to be covered but after working with dozens of organizations and production environments that can’t afford to be brought down — I’ve experienced more than a few in-progress security related projects without a well-thought-out plan. Agile methodologies and other project management strategies are in demand due to their ability to balance supply and demand of project needs. When technology and human resources are limited I do follow a general set of focus areas to create a project plan.</p><p>𝐂𝐫𝐞𝐚𝐭𝐢𝐧𝐠 𝐚 𝐂𝐚𝐭𝐜𝐡 𝐀𝐥𝐥 𝐏𝐫𝐨𝐣𝐞𝐜𝐭 𝐏𝐥𝐚𝐧</p><p>Finding examples for Security related project plans on Google can be a great start but often comes with confusion and decision fatigue. The amount of planning required often depends on the size of the project. Today, comprehensive security project plan checklists don’t exist (If there is one that exists please let me know and I’ll paste it here!). While operating in my domains of expertise these are always focus areas I include when creating a project plan for a security control.</p><ul><li>Teammates</li><li>Infrastructure Requirements</li><li>Use Cases (Examples of what the project will accomplish/solve)</li><li>Milestones (Measurement)</li><li>Validation</li><li>Optimization</li></ul><h3>Security Architecture Tip 3/100 — Create Access for Security Controls</h3><p>Access is always key when implementing a new security control and any other technology. When working in sensitive or air-gapped networks it’s best practice to document any application or service that needs to reach out to the Internet. It’s not uncommon to forget to open firewall rules / create proxy exceptions for traffic that should reach out to the Internet. When traffic to/from a Security Control is being blocked for unwanted reasons it could impede the effectiveness of an Incident Response team (Especially if that security control needs data from an API). If suddenly find out that my security control is unable to reach necessary resources I typically start with a few common questions and Linux commands if needed:</p><h4>Is the security control running? How long has the service been running?</h4><pre>systemctl status</pre><h4>Are any errors in application log?</h4><pre>less /var/log/*.log</pre><h4>Wow, things with this application/service are looking bad! How do find out more details?</h4><pre>journalctl -u &lt;service_name&gt;</pre><h4>Have I reviewed network connections?</h4><pre>netstat -peanut </pre><p>These few questions can work as a great starting point</p><h3>Security Architecture Tip 4/100 — Scripting/Programming</h3><p>Hopefully as a Security Architect you aren’t tied to completing 100% of the engineering for your security projects. For the majority of my deployments, I find myself working with organizations to implement some custom code. This could be to facilitate the interaction between several tools or a requirement to format and present data in a specific way. After working with dozens of organizations, my bet for scripting/programming is Python and Golang. I’d highly recommend both of these languages because of the ease of use and industry demand (talent in these areas also demand excellent compensation). From a security architecture perspective, here are areas of scripting/programming that I’d recommend being proficient in:</p><ul><li>Formatting Strings (Splitting, Stripping, Appending)</li><li>Parsing JSON objects</li><li>Performing HTTP Requests (GET, POST, etc..)</li></ul><p>Creating re-usable functions Need More? Here are a few technologies and Libraries that I’ve been researching/implementing:</p><ul><li>Docker SDK</li><li>Serverless Framework</li><li>Homomorphic encryption libraries</li></ul><p>Also, here’s my current open-source project Threat Intel Slack Bot: <a href="https://github.com/secdevopsai/Threat-Intel-Slack-Bot">https://github.com/secdevopsai/Threat-Intel-Slack-Bot</a></p><h3>Security Architecture Tip 5/100 — Accessing Devices and Applications</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hQG-7rEpjRHZOQKi" /><figcaption>SSH Config File ~/.ssh/config</figcaption></figure><p>As organizations evolve, technology and infrastructure evolve. To keep my head on straight when starting and providing on-going support to a security deployment I make cheatsheets for accessing my necessary resources. Hopefully, we all have an understanding on how to establish an SSH session with a VM or physical server but what about containers and cloud functions? Today, I spend most of my time with VMs and containers</p><pre>  ssh -i &lt;key&gt; MyDevice(dot)com </pre><pre>docker run -it &lt;container_name&gt; bash </pre><pre>docker exec -it &lt;container_name&gt; bash • serverless invoke -f &lt;function_name&gt; </pre><p>Lately, I’ve been doubling down and growing my expertise in cloud functions. Serverless framework, Firebase, and AWS Amplify.</p><h3>Security Architecture Tip 6/100 — Open source tools</h3><p>Practicing my craft for the past ten years, I’ve witnessed the explosion of open source libraries and applications. To know which tools you can use for FREE can save a lot of time… And more importantly MONEY 🤑. There are many great resources and so little time to review. Here are a few strategies I take to mastering open source tools:</p><h4>Discovery</h4><ul><li>Search Github for topics of interest (I love awesome-lists on Github)</li><li>Conference Agendas</li><li>Google filters (site:&lt;WhereToSearch(dot)com&gt; search term)</li></ul><h4>Achieving A Deeper Understanding</h4><ul><li>Conference Videos</li><li>Github Readme and ReadTheDocs pages</li></ul><h4>Maintenance</h4><ul><li>News Feeds (Reddit, Medium, Archive)</li><li>Google Alerts</li><li>Conferences</li><li>Twitter</li><li>LinkedIn</li></ul><h3>Security Architecture Tip 7/100 — Closed source tools</h3><p>This tip could be a bit difficult to fully digest because acquiring deep insight of a library, utility, or application could be tough when the code (and other resources) is not available… or even worse, behind a paywall with limited budget. Before joining Demisto (Now a Palo Alto Networks company) I was a user of the free edition and obtained access to the Documentation and Slack channel. By leveraging these few resources I gained a great understanding of the product, release cadence, and team.This could be a great strategy to to evaluate products while increasing your understanding of security technologies. I’ve worked with countless organizations that recruit analysts, engineers, and architects specifically on their ability to work with vendor products. I have a few recommendations for finding the hottest vendors in cybersecurity:</p><ul><li>Crunchbase</li><li>Job Listings and Job Requirements</li><li>LinkedIn</li><li>Webinars</li></ul><p>I’m certain anyone reading this article has been messaged on LinkedIn/Email by a vendor requesting time. I’ve always enjoyed demos — at a minimum I walk away with new ideas and insights as to what others are working on.</p><h4>Need more tips?</h4><ul><li>Join our <a href="https://join.slack.com/t/secdevopsai/shared_invite/enQtMjgxMDA3MzY5NDI3LTA2MGUzZDhhMjllY2M1MDkyMWUzZGNmOTk5Y2NjYzBhYTU3ZjhlYzQ4YzFhMWUzNjgwYzgzZWNkZmQyM2QyZWM">Slack</a> channel</li><li>View our <a href="https://linktr.ee/secdevopsai">Streaming Content</a></li><li>Follow us on <a href="https://www.linkedin.com/in/ronald-eddings-a730bb22/">LinkedIn</a>, <a href="https://www.youtube.com/channel/UCMHeoyhkHdb4DdbBkhORqMQ">YouTube</a>, <a href="https://twitter.com/secdevopsai">Twitter</a>, <a href="https://www.reddit.com/user/secdevops/">Reddit</a>, <a href="https://www.facebook.com/secdevopsai">Facebook</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10b1f159b297" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackervalleystudio/security-architecture-tips-of-the-week-1-10b1f159b297">Security Architecture Tips of The Week #1</a> was originally published in <a href="https://medium.com/hackervalleystudio">Hacker Valley Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Packet Analysis with Data Science]]></title>
            <link>https://medium.com/hackervalleystudio/learning-packet-analysis-with-data-science-5356a3340d4e?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/5356a3340d4e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Tue, 31 Jul 2018 13:01:00 GMT</pubDate>
            <atom:updated>2019-07-09T16:16:57.219Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever opened Wireshark and thought, “this is nice, but sometimes filtering and following TCP streams is tedious?” If not, open Wireshark more. In this post, I’ll cover how to leverage Python, Scapy, Pandas, and Seaborn to bring excitement back to packet analysis. Also, this post will serve as a prequel for our next series on Packet Manipulation with Data Science.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IABKx7npAyaH3oYFR2ZN2g.png" /><figcaption>Is it just me or does Wireshark remind you of a Pandas DataFrame?</figcaption></figure><h3>Should I be learning Python and Data Science?</h3><p>The short answer is, Yes. We’re living in a time where both the cybersecurity analyst and researcher are losing their technical edge by relying on far too many closed-source tools. Combining Python and Data Science enables anyone to reach new realms of possibilities in cybersecurity. Not only will it give you the ability to manipulate data, you can begin creating custom visualizations with the data that you’ve manipulated.</p><h3>This Post will Empower You To:</h3><ul><li>Capture Packets with Scapy</li><li>Manipulate Data with DataFrames</li><li>Create visualizations that describe packet capture</li><li>Glean out suspicious conversations on the packet level</li></ul><h3>Where Do We Begin?</h3><p>If you haven’t gotten around to using <a href="https://en.wikipedia.org/wiki/IPython#Project_Jupyter">Jupyter</a> Notebook, please start today — This should serve as your playground for executing and bringing ideas to life. We’ll also leverage <a href="https://en.wikipedia.org/wiki/Anaconda_(Python_distribution)">Anaconda</a> as our package manager to make our lives simple while creating our development environment:</p><p>Steps:</p><ol><li>Download and install Anaconda (Python 3.6) <a href="https://www.anaconda.com/download/">here</a></li><li>Navigate to Anaconda Cloud and download the Packet-Analytics Project <a href="https://anaconda.org/secdevopsai/project/packet-analytics/download">Here</a>:</li><li>In a terminal window, run the following anaconda command: <strong>anaconda-project unarchive packet-analytics.tar.bz2</strong></li><li>In the same terminal window, switch to the packet-analytics directory: <strong>cd packet-analytics</strong></li><li>In a terminal window, run the following anaconda command: <strong>anaconda-project run</strong>(Note you may need to sudo since we’ll be sniffing packets)</li></ol><p>If you’re interested in following along with a Docker image, follow this link: <a href="https://github.com/secdevopsai/Packet-Analytics">https://github.com/secdevopsai/Packet-Analytics</a></p><h3>Let’s Get Started</h3><p>There’s a few libraries that we’ll need to import to make all of this possible. Take a look at the gist below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a677492207a0685bfcc2ada09ccac88/href">https://medium.com/media/8a677492207a0685bfcc2ada09ccac88/href</a></iframe><h4>Scapy vs Everything</h4><p>Scapy is a powerful tool that will give us the ability to capture, load, and save packets. Scapy is my packet capture tool of choice because of it’s extensibility and ongoing community support. Typically, packet capture and/or analysis is performed in Wireshark. It’s tough to keep track of multiple suspicious indicators in Wireshark while also keeping track of multiple connections. I’ve also witnessed attempts and efforts to store packet captures in Splunk and other Search Engines — This is not a cheap solution and does not solve the problem of analysis. When manipulating packets in Scapy, operations can seem a bit rigid. Transforming our packet capture into a Pandas DataFrame will make our lives a lot easier.</p><h4>Sniffing Packets in Scapy</h4><p>Sniffing packets in scapy is a straightforward process. We have the option to define a finite numbers of packets to sniff.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/86310b6f59da34320a820cabab517350/href">https://medium.com/media/86310b6f59da34320a820cabab517350/href</a></iframe><h4>Appending a PCAP</h4><p>For the sake of this post, I’ve created a PCAP with a seemingly suspicious stream. We’ll append the suspicious PCAP to what we’ve already collected</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/990f5d5e3a629917eee1a218d8df88ce/href">https://medium.com/media/990f5d5e3a629917eee1a218d8df88ce/href</a></iframe><h4>Exploring An Item In Packet List</h4><p>When enumerating through the collected PCAP (PacketList Object), we can observe encapsulation of network layers. More specifically, pcap[101]’s first layer is Ethernet -&gt; which has a payload (IP) -&gt; Which has a payload (UDP). It’s important to understand encapsulation because data can be communicated via tunneling protocol (MPLS, GRE, ect..)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d36adc8bf6490fb2defb97420a08576c/href">https://medium.com/media/d36adc8bf6490fb2defb97420a08576c/href</a></iframe><h4>Converting PCAP to Pandas DataFrame</h4><p>If you’ve searched “Python Data Science” on Google then you’ve surely come across Pandas. This is an astounding tool to leverage when attempting to manipulate various data types. From Pandas, we’ll be leveraging DataFrames — two dimensional data structures. We’ll convert boring Scapy output to a more comprehensive DataFrame:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FWfRyvMiIaM8DCb_kh0q_w.png" /></figure><p>The below code snippet is important but can be skipped. The key takeaway of the code snippet is that we’re enumerating through the encapsulated network layers and creating a DataFrame that will have encapsulated layer fields as columns (ie. Source Address, Source Port, ect…)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07d3e1ef0db68b9318a684d611f5b020/href">https://medium.com/media/07d3e1ef0db68b9318a684d611f5b020/href</a></iframe><h4>DataFrame Basics</h4><p>There are many amazing DataFrame introduction posts that can be found <a href="https://pandas.pydata.org/pandas-docs/stable/basics.html">here</a> and <a href="https://hackernoon.com/intro-to-pandas-1-an-absolute-beginners-guide-to-machine-learning-and-data-science-a1fed3a6f0f3">here</a>. The below snippet has some DataFrame Basics to keep in your back pocket:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/28417b1faddde18530159dcd6a01f019/href">https://medium.com/media/28417b1faddde18530159dcd6a01f019/href</a></iframe><h4>PCAP Statistics</h4><p>When dealing with suspicious, you don’t want to spend countless hours on determining if something is malicious or benign. We can leverage our DataFrame and gather quite a bit of statistics on what is encompassed in our PCAP. In this example, we’re going to retrieve the most frequent source address, destination address and some information about the ports that are being utilized in network communications:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1340ea0d9ad427ef034e5753c14411a3/href">https://medium.com/media/1340ea0d9ad427ef034e5753c14411a3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*AitBTzoTyF4Abi6Orq9Rpw.png" /></figure><h4>Visualizations</h4><p>When dealing with large quantities of packets, creating visualizations in the form of graphs can be quite helpful for understanding trends and patterns. We can leverage matplotlib, seaborn, or other libraries such as plotly to visualize our data. When searching for malicious artifacts in PCAP graphs can highlight anomalous spikes of data and display that data is being sent out in regular intervals (or pseudorandom intervals). In the below snippet, we begin applying grouping operations — Grouping data by Destination Address and other attributes:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/471b25c95f442aba15037adcabb22992/href">https://medium.com/media/471b25c95f442aba15037adcabb22992/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*ujtZIUIbTgobUSYWwjMLfw.png" /></figure><h4>Payload Investigation</h4><p>The graphs that we created highlighted the fact that a large amount of data was sent over port 53. Exfiltrating data using this port is a common technique for attackers due to the fact that restricting DNS communication can be troublesome. At this point, we can open wireshark <strong>or write a few lines of code to make this action repeatable. </strong>We’ll perform another grouping operation, separate the conversation into its own dataframe, and view the suspicious conversation:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9424f1f0cbd6798ebc28ff8be3d3eb1a/href">https://medium.com/media/9424f1f0cbd6798ebc28ff8be3d3eb1a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fBfjeaXh5NRqbN90Qj9fQ.png" /></figure><h3>Conclusion</h3><p>Working with PCAP can sometimes be tedious and intimidating. By leveraging Python and Data Science techniques we can begin to glean out more interesting attributes and find the suspicious or malicious data that we’re searching for quickly. By using these techniques we’re only scratching the surface of possibilities and with practice you’ll begin to find many artifacts in your packet streams. My challenge to the reader is to fully extract the PNG from the PCAP and display the image.</p><p>Link to Github Project: <a href="https://github.com/secdevopsai/Packet-Analytics">https://github.com/secdevopsai/Packet-Analytics</a></p><h4>Thanks For Reading. If you enjoyed this post please give it 50 claps (Yes, 50 claps 😊) 👏👏👏👏</h4><ul><li>Join our <a href="https://join.slack.com/t/secdevopsai/shared_invite/enQtMjgxMDA3MzY5NDI3LTA2MGUzZDhhMjllY2M1MDkyMWUzZGNmOTk5Y2NjYzBhYTU3ZjhlYzQ4YzFhMWUzNjgwYzgzZWNkZmQyM2QyZWM">Slack</a> channel</li><li>Follow us on <a href="https://www.youtube.com/channel/UCMHeoyhkHdb4DdbBkhORqMQ">YouTube</a>, <a href="https://twitter.com/secdevopsai">Twitter</a>, <a href="https://www.reddit.com/user/secdevops/">Reddit</a>, <a href="https://www.facebook.com/secdevopsai">Facebook</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5356a3340d4e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackervalleystudio/learning-packet-analysis-with-data-science-5356a3340d4e">Learning Packet Analysis with Data Science</a> was originally published in <a href="https://medium.com/hackervalleystudio">Hacker Valley Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Become a Hacker: How to Create Your First Exploit]]></title>
            <link>https://medium.com/hackervalleystudio/become-a-hacker-how-to-create-your-first-exploit-38eea5df2b56?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/38eea5df2b56</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Mon, 19 Mar 2018 07:56:16 GMT</pubDate>
            <atom:updated>2018-03-19T07:56:16.555Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6xLouY46ErxzhLSQzi7e8A.png" /></figure><p>Have you ever wondered how to build an exploit and have no idea where to start? Great, this video gives you a great starting point in writing exploits without getting deep into code while empowering the viewers 💪</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FU2mpUQTWRhI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DU2mpUQTWRhI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FU2mpUQTWRhI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/353eeaf7b1aa54aab848c1f8c34e2ee5/href">https://medium.com/media/353eeaf7b1aa54aab848c1f8c34e2ee5/href</a></iframe><h4>Thanks For Watching. If you enjoyed this post please give it 50 claps (Yes, 50 claps 😊) 👏👏👏👏</h4><ul><li>Join our <a href="https://join.slack.com/t/secdevopsai/shared_invite/enQtMjgxMDA3MzY5NDI3LTA2MGUzZDhhMjllY2M1MDkyMWUzZGNmOTk5Y2NjYzBhYTU3ZjhlYzQ4YzFhMWUzNjgwYzgzZWNkZmQyM2QyZWM">Slack</a> channel</li><li>Follow us on <a href="https://www.youtube.com/channel/UCMHeoyhkHdb4DdbBkhORqMQ">YouTube</a>, <a href="https://twitter.com/secdevopsai">Twitter</a>, <a href="https://www.reddit.com/user/secdevops/">Reddit</a>, <a href="https://www.facebook.com/secdevopsai">Facebook</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38eea5df2b56" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackervalleystudio/become-a-hacker-how-to-create-your-first-exploit-38eea5df2b56">Become a Hacker: How to Create Your First Exploit</a> was originally published in <a href="https://medium.com/hackervalleystudio">Hacker Valley Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking With Go: Packet Crafting and Manipulation in Golang Pt 2]]></title>
            <link>https://medium.com/hackervalleystudio/hacking-with-go-packet-crafting-and-manipulation-in-golang-pt-2-632e99917865?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/632e99917865</guid>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Mon, 05 Feb 2018 16:52:17 GMT</pubDate>
            <atom:updated>2018-02-26T06:16:08.133Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLonxfp6RM8c%3Fstart%3D115%26feature%3Doembed%26start%3D115&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLonxfp6RM8c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLonxfp6RM8c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/efb902e0d753e7205a19ab17ffe2241a/href">https://medium.com/media/efb902e0d753e7205a19ab17ffe2241a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*G4CAbOSReeo-S-Jck2JK6w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=632e99917865" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackervalleystudio/hacking-with-go-packet-crafting-and-manipulation-in-golang-pt-2-632e99917865">Hacking With Go: Packet Crafting and Manipulation in Golang Pt 2</a> was originally published in <a href="https://medium.com/hackervalleystudio">Hacker Valley Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking With Go: Packet Crafting and Manipulation in Golang Pt 1]]></title>
            <link>https://medium.com/hackervalleystudio/hacking-with-go-packet-crafting-and-manipulation-in-golang-pt-1-f31cdb066e3a?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/f31cdb066e3a</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Mon, 29 Jan 2018 14:50:11 GMT</pubDate>
            <atom:updated>2018-02-26T06:17:03.943Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fs5l9ZdgxzXA%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Ds5l9ZdgxzXA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fs5l9ZdgxzXA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1cc6dd4162b507d98dfaa6e544541e3/href">https://medium.com/media/b1cc6dd4162b507d98dfaa6e544541e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*G4CAbOSReeo-S-Jck2JK6w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f31cdb066e3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackervalleystudio/hacking-with-go-packet-crafting-and-manipulation-in-golang-pt-1-f31cdb066e3a">Hacking With Go: Packet Crafting and Manipulation in Golang Pt 1</a> was originally published in <a href="https://medium.com/hackervalleystudio">Hacker Valley Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python List Comprehension: Three Helpful Tips]]></title>
            <link>https://medium.com/hackervalleystudio/python-list-comprehension-three-helpful-tips-3fa88763c246?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fa88763c246</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Tue, 16 Jan 2018 15:13:42 GMT</pubDate>
            <atom:updated>2018-01-16T15:13:42.051Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhboyyjIdZ_g2vXloAOFBA.png" /></figure><p>List comprehension is a technique used in Python to transform one list (or iterable) to another list. If you’re not using list comprehension then the example below will probably look familiar:</p><pre>&gt;&gt;&gt; newList = []<br>&gt;&gt;&gt; for x in range(5):<br>    newList.append(x)</pre><pre>&gt;&gt;&gt; print(newList)<br>[0, 1, 2, 3, 4]</pre><p>List comprehension can simplify the above example to the following:</p><pre>&gt;&gt;&gt; newList = [x for x in range(5)]</pre><pre>&gt;&gt;&gt; print(newList)<br>[0, 1, 2, 3, 4]</pre><p>With list comprehension on your side, you can save time and several lines of code. I’d like to pass on a few tips that you can leverage while employing list comprehension.</p><h3>Tip #1 — Conditionals</h3><p>List comprehension provides us the flexibility of using conditional statements. Below is an example to append the value of x to a list if x is a multiple of 3 while looping through numbers 1–10.</p><pre>&gt;&gt;&gt; [x for x in range(10) <strong>if x % 3 == 0</strong>]<br>[0, 3, 6, 9]</pre><p>In the above example, the value is added to the list only when the bolded condition is met.</p><p>Surprisingly, with list comprehension, we can also use the <strong><em>else</em></strong> statement. In one line, we can solve the classic FizzBuzz interview challenge question.</p><pre>&gt;&gt;&gt; [&#39;FizzBuzz&#39; if (x % 3 == 0 and x % 5 ==0) else &#39;Fizz&#39; if (x % 3 == 0) else &#39;Buzz&#39; if (x % 5 == 0) else x for x in range(1,21)]</pre><pre>[1, 2, &#39;Fizz&#39;, 4, &#39;Buzz&#39;, &#39;Fizz&#39;, 7, 8, &#39;Fizz&#39;, &#39;Buzz&#39;, 11, &#39;Fizz&#39;, 13, 14, &#39;FizzBuzz&#39;, 16, 17, &#39;Fizz&#39;, 19, &#39;Buzz&#39;]</pre><h3>Tip #2 — Nested Loops</h3><p>If you love to get carried away with list comprehension, be sure to check out nested loops. Let’s observe the following example below and attempt to reach the same solution with list comprehension.</p><pre>&gt;&gt;&gt; styles = [&#39;chopped&#39;,&#39;diced&#39;,&#39;minced&#39;]<br>&gt;&gt;&gt; fruits = [&#39;apples&#39;,&#39;bananas&#39;,&#39;oranges&#39;]<br>&gt;&gt;&gt; plateOptions = []<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; for style in styles:<br>        for fruit in fruits:<br>            plateOptions.append([style,fruit])</pre><pre>&gt;&gt;&gt; plateOptions<br>[[&#39;chopped&#39;, &#39;apples&#39;], [&#39;chopped&#39;, &#39;bananas&#39;], [&#39;chopped&#39;, &#39;oranges&#39;], [&#39;diced&#39;, &#39;apples&#39;], [&#39;diced&#39;, &#39;bananas&#39;], [&#39;diced&#39;, &#39;oranges&#39;], [&#39;minced&#39;, &#39;apples&#39;], [&#39;minced&#39;, &#39;bananas&#39;], [&#39;minced&#39;, &#39;oranges&#39;]]</pre><p>The above example can be condensed down to:</p><pre>&gt;&gt;&gt; styles = [&#39;chopped&#39;,&#39;diced&#39;,&#39;minced&#39;]<br>&gt;&gt;&gt; fruits = [&#39;apples&#39;,&#39;bananas&#39;,&#39;oranges&#39;]<br>&gt;&gt;&gt; plateOptions = [[style,fruit] for style in styles for fruit in fruits]</pre><pre>&gt;&gt;&gt; plateOptions<br>[[&#39;chopped&#39;, &#39;apples&#39;], [&#39;chopped&#39;, &#39;bananas&#39;], [&#39;chopped&#39;, &#39;oranges&#39;], [&#39;diced&#39;, &#39;apples&#39;], [&#39;diced&#39;, &#39;bananas&#39;], [&#39;diced&#39;, &#39;oranges&#39;], [&#39;minced&#39;, &#39;apples&#39;], [&#39;minced&#39;, &#39;bananas&#39;], [&#39;minced&#39;, &#39;oranges&#39;]]</pre><h3>Tip #3 — Be creative but don’t get carried away</h3><p>When using list comprehension it’s easy to get carried away. Below is an example of myself getting carried away. I was attempting to assign an element in a list the value ‘DragronFruit’.</p><pre>&gt;&gt;&gt; fruits = [&#39;apples&#39;,&#39;bananas&#39;,&#39;oranges&#39;]<br>&gt;&gt;&gt; [fruits.__setitem__(ix, &#39;DragonFruit&#39;) for ix, fruit in enumerate(fruits) if &#39;apples&#39; == fruit]</pre><pre>&gt;&gt;&gt; fruits<br>[&#39;DragonFruit&#39;, &#39;bananas&#39;, &#39;oranges&#39;]</pre><p>As you can see, I assigned the value ‘DragonFruit’ to the [0] element in the fruits list<em>. </em>This example may look like a workaround; however, it’s poor coding practice. Not only does it go against the purpose of list comprehension but it also makes my code more difficult to read. List comprehension is intended for generating a list, not assigning values in other lists.</p><h3><strong>Conclusion</strong></h3><p>List comprehension gives us quite a few options when transforming one list to another list. It’s no question that it makes our code more brief. It’s important to takeaway the flexibility of list comprehension while remembering to make your code as readable as possible.</p><h4>Thanks For Reading. If you enjoyed this post please give it 50 claps (Yes, 50 claps 😊) 👏👏👏👏</h4><ul><li>Join our <a href="https://join.slack.com/t/secdevopsai/shared_invite/enQtMjgxMDA3MzY5NDI3LTA2MGUzZDhhMjllY2M1MDkyMWUzZGNmOTk5Y2NjYzBhYTU3ZjhlYzQ4YzFhMWUzNjgwYzgzZWNkZmQyM2QyZWM">Slack</a> channel</li><li>Follow us on <a href="https://www.facebook.com/secdevopsai">Facebook</a>, <a href="https://twitter.com/secdevopsai">Twitter</a>, <a href="https://www.reddit.com/user/secdevops/">Reddit</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fa88763c246" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackervalleystudio/python-list-comprehension-three-helpful-tips-3fa88763c246">Python List Comprehension: Three Helpful Tips</a> was originally published in <a href="https://medium.com/hackervalleystudio">Hacker Valley Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[There’s No Place Like ::1 — Enumerating Local IPv6 networks]]></title>
            <link>https://medium.com/hackervalleystudio/theres-no-place-like-1-enumerating-local-ipv6-networks-88a6247e3519?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/88a6247e3519</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Mon, 18 Dec 2017 14:22:43 GMT</pubDate>
            <atom:updated>2017-12-18T15:24:47.044Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFx4Jen8xx2R4vGYTi4YWQ.jpeg" /><figcaption><a href="http://github.com/apg-intel/ipv6tools">IPv6Tools</a> — Created by Ronald Eddings and <a href="https://medium.com/u/e3fef29d40f5">Josh</a></figcaption></figure><p>In today’s digital age, our devices expose a vast amount of data which highlights the need for cybersecurity. Without realizing it, we connect to WiFi networks and communicate with many devices on the same local network in the background. Are you certain that your devices aren’t sharing data that an attacker can leverage while you’re at a coffee shop or hotel?</p><h3>Internet Protocol</h3><p>IPv6 is the latest iteration of Internet Protocol (IP) and odds are your devices are chatting with other devices using this protocol. IPv6 was designed and created to address some of the shortfalls of IPv4. Larger address space (Total # of IP addresses), efficient routing, and enhanced security are just a few key reasons why IPv6 is intended to replace IPv4. There are dozens of security products that protect our devices and network communications over IPv4 but what about IPv6? Surprisingly, many security products have little or no support for IPv6. This may leave you wondering what’s the difference between these two Internet Protocols?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*OPFkiEJhuxzDhRFhZPrewA.png" /><figcaption>Difference between IPv4 and IPv6 headers</figcaption></figure><p>The header of an IP packet is similar to the information you fill out on the face of an envelope. It provides the necessary information to send your network traffic to the correct place. Since IPv4 and IPv6 addresses are different in size and appearance the cybersecurity community must innovate new novel techniques to monitor, detect, and prevent malicious events from harming your device. Unfortunately, these techniques are being implemented at a very slow rate and many security solutions have no IPv6 support. This allows attackers to communicate with vulnerable devices without a trace. <a href="https://medium.com/u/e3fef29d40f5">Josh</a> and I decided to take a look at what our devices may be sharing with an attacker. This led to the creation of our modular framework for enumerating IPv6 networks — <a href="https://github.com/apg-intel/ipv6tools">IPv6Tools</a>.</p><h3>The best predictor of future behavior is … past behavior</h3><p>I didn’t start out this process as an IPv6 expert (Probably still far from that today) so I decided to research older techniques used to enumerate IPv4 networks. In both IPv4 and IPv6 there are protocols that assist engineers in configuring and troubleshooting IP communications — these protocols also help us with enumeration. For instance, the most popular networking utility Ping, leverages Internet Control Message Protocol (ICMP) to test reachability of devices on IP networks. During our research, more than 80% of discovered devices responded to at least one type of ICMPv6 request. It’s very trivial to send a “Ping” to a device and retrieve a variety of information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XoaDFOq2JkDgE0w8DOR16w.png" /><figcaption>Snippet of manual page for ping6 (Network utility to test reachability of IPv6 devices)</figcaption></figure><pre><strong>prototype@ubuntu</strong>:<strong>~</strong>$ ping6 fe80::1488:901c:4d03:cf78%ens33 -N name</pre><pre>PING fe80::1488:901c:4d03:cf78%ens33(fe80::1488:901c:4d03:cf78) 56 data bytes</pre><pre>38 bytes from fe80::1488:901c:4d03:cf78: <strong>SecDevOps.local</strong>; seq=1; ttl=64</pre><pre>38 bytes from fe80::1488:901c:4d03:cf78: <strong>SecDevOps.local</strong>; seq=2; ttl=64</pre><p>The above two figures provide insight on fields we’re able to enumerate. One thing to note is that all devices DO NOT respond to all the requests types listed above and it’s not uncommon for vendors to pick and choose which part of the Request For Comment (RFC) that they wish to follow.</p><h3>Identifying the mechanism to send our Ping</h3><p>When referring to IP transmissions, the most common types are Unicast, Broadcasts, and Multicast. The names of the transmission types are intuitive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*_HRInfSCpsCLDBzunqjshw.png" /><figcaption>Image From: http://veraview.com/wp-content/uploads/2016/03/Unicast-v-Multicast.png</figcaption></figure><p>Since the goal is to enumerate a network, we must employ broadcast or multicast messages to reach many hosts and retrieve information. However, IPv6 does not support broadcast— which leaves multicast as our mechanism for reaching many hosts with a single packet. As you can see in the image above, devices belong to certain multicast groups — and there are many types of multicast groups. For instance, there is an <em>All Routers </em>multicast group. Routers belong to this multicast group because they are able to process and respond to specific type of messages that other devices will want to ignore. Many devices subscribe to the multicast DNS (mDNS) group — mDNS is a service that locally resolves hostnames to IP addresses and works almost identically to Domain Name Service (DNS). Windows devices leverage a common service called Link-Local Multicast Resolution (LLMNR). The beauty of mDNS is that we can query a device and politely ask for additional details about services installed. There are a lot of caveats as to when/what a device will answer but it never hurts to ask…. Here’s the exhaustive list we are using:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd91ea34c902149e68959a434d436c5e/href">https://medium.com/media/fd91ea34c902149e68959a434d436c5e/href</a></iframe><h3>Using IPv6Tools to enumerate networks</h3><p>As mentioned, we have built a robust set of modules and plugins that allow a user to visually audit an IPv6 enabled network. The built-in modules support enumeration of IPv6 features such as ICMPv6 and Multicast Listener Discovery (MLD). We’ve also added support for enumeration of Upper Layer Protocols (ULP) such as mDNS. The initial scan performed by the web application sends out eight IPv6 multicast packets and immediately plots the devices that responded to a force-directed graph. In fact, it’s not required to send any packets at all to begin visualizing an IPv6 enabled network because devices are very chatty and regularly send out multicast packets. We’ve deemed these protocols/features excellent place to start for enumerating IPv6 networks:</p><ul><li>ICMPv6 echo request</li><li>ICMPv6 echo Name request</li><li>MLD groups</li><li>mDNS details</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N51XK3xIPs0ThTRsUGIRrw.gif" /><figcaption>IPv6Tools in action</figcaption></figure><p>In a matter of seconds, we can enumerate and visualize an IPv6 Network! After the initial scan, IPv6Tools sends out a few mDNS and LLMNR requests which often returns services/applications running on device, multicast groups, and other IP address information. The nodes that have been enriched with mDNS and LLMNR responses are have a green arrow in the table.</p><h3>Modularity</h3><p>We made extending the use of our framework easy and painless. To write Python that interacts with a single a node (or multiple) should be placed in the <em>modules</em> folder. The <em>template.py</em> file is a great reference to review for writing a module.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cbab33e402546d0420d75cf3d7b54f33/href">https://medium.com/media/cbab33e402546d0420d75cf3d7b54f33/href</a></iframe><p>The modname variable contains the Title Name of the module in IPv6Tools. During our research, I found a FreeBSD Denial-of-Service (DoS) Python script that exploits an ICMPv6 error checking vulnerability in FreeBSD 9.3 and below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b71744ccd9ea4e44776a8b1eb710a5b/href">https://medium.com/media/6b71744ccd9ea4e44776a8b1eb710a5b/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjHwJlWgaGljYmScVG-GNw.png" /></figure><p>The above module can be executed against a node by right-clicking the node in the graph or the table. Similarly, modules can be executed directly from the Table tab.</p><h3>Moving Forward</h3><p>The state of IPv6 security is less than stellar but researchers are rapidly working together to fill the gap. Security is our passion and our hope is that researchers and anyone with interest in IPv6 leverages IPv6Tools as their framework to visualize and perform actions on IPv6 nodes.</p><h4>Thanks For Reading. If you enjoyed this post please give it 50 claps (Yes, 50 claps 😊) 👏👏👏👏</h4><ul><li>Join our <a href="https://join.slack.com/t/secdevopsai/shared_invite/enQtMjgxMDA3MzY5NDI3LTA2MGUzZDhhMjllY2M1MDkyMWUzZGNmOTk5Y2NjYzBhYTU3ZjhlYzQ4YzFhMWUzNjgwYzgzZWNkZmQyM2QyZWM">Slack</a> channel</li><li>Follow us on <a href="https://www.facebook.com/secdevopsai">Facebook</a>, <a href="https://twitter.com/secdevopsai">Twitter</a>, <a href="https://www.reddit.com/user/secdevops/">Reddit</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88a6247e3519" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackervalleystudio/theres-no-place-like-1-enumerating-local-ipv6-networks-88a6247e3519">There’s No Place Like ::1 — Enumerating Local IPv6 networks</a> was originally published in <a href="https://medium.com/hackervalleystudio">Hacker Valley Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Intelligence Nanodegree: Game Playing Agent]]></title>
            <link>https://medium.com/hackervalleystudio/artificial-intelligence-nanodegree-game-playing-agent-a4012eb18d11?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4012eb18d11</guid>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[nanodegree]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Fri, 10 Nov 2017 12:59:48 GMT</pubDate>
            <atom:updated>2017-11-10T16:51:48.535Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*wfaZFk7ZITkh307ks4f9GA.gif" /></figure><p>The purpose of this project is to design and implement a game playing agent to play a game using adversarial search methods. The goal is to create a game playing agent that defeats our opponent at a game of isolation consistently. For this project I’ve designed three heuristics to create an effective edge for the game playing agent. Don’t know what Isolation is? Check out out this page: <a href="https://isolation.secdevops.ai/">isolation.secdevops.ai</a> and compete against my agent.</p><h3>Minimax</h3><p>In the case of the game isolation, there are two players competing against each other. We are under the assumption that the AI player and human player are both playing two win. While back-propagating through the search tree, our algorithm must maximize the outcome (choose the optimal move) for when it’s the AI’s turn and minimize the outcome (choose the least optimal move for us) when it’s the human player’s turn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*-rOWF4Zu6zE2P4qn7FYwJQ.png" /><figcaption>Image from <a href="http://cs.lmu.edu/~ray/images/minimax.png">http://cs.lmu.edu/~ray/images/minimax.png</a></figcaption></figure><p>Observe the bottom-left portion of the search tree — the bottom nodes are maximizing nodes. Maximizing nodes select the highest value (most optimal outcome). As you may guess, minimizing nodes select the lowest value (least optimal outcome). Imagine that you are playing a game of chess, each move you make is a maximizing node (your intention is to win) — and every move your opponent makes is a minimizing node (move that messes up your game 😞).</p><h3>Iterative Deepening</h3><p>Thus far in the Nanodegree we’ve been exploring search algorithms that enable us to brute force winning outcomes based on a specific game state. Some games have a very large game-state space (same is true for isolation game) — which would make traditional depth-first search an inefficient solution to find a winning outcome. In some cases, we may want to search each possible outcome of a game move while returning an optimal next move in a reasonable time. That’s where iterative deepening comes into play. With iterative deepening, you define the minimum search depth; if time persists, another depth will be explored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*dA20GbXBrT6-BUPMLqJFKA.gif" /><figcaption>The above image is an example of depth-first search iteratively checking each depth until goal state is reached.</figcaption></figure><h3>Evaluation Functions</h3><p>Once the minimum search depth is reached, we must evaluate each node and provide a score. For example, an evaluation function could be the number of moves a player has available — The below figure shows an example search tree with the number of moves available in each game state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*Y3xZY4i64F-JxMRT5Op3OQ.png" /></figure><p>For this project I’ve designed and implemented three evaluation functions.</p><h4>Evaluation Function 1 (Good)</h4><pre>num_of_my_moves - 2 * num_of_opponent_moves</pre><h4>Evaluation Function 2 (Worst)</h4><pre>num_of_blank_spaces / 2 + 2 * num_of_my_moves</pre><h4>Evaluation Function 3 (Best)</h4><pre>(num_of_my_moves - 2 * num_of_opponent_moves) + (num_of_blank_spaces / 2 + 2 * num_of_my_moves) / 13</pre><h3>AlphaBeta Pruning</h3><p>AlphaBeta Pruning is an amazing AI technique I was introduced to during this project. This pruning technique allows us to ignore entire sections of a search tree while reaching the same outcome as minimax. For the sake of accuracy, I’m pasting in the video that helped me with this concept the most:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2_g9Kbmsqn0%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2_g9Kbmsqn0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2_g9Kbmsqn0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6bb4f7126dfda10d8e19dcd9a4dfa23a/href">https://medium.com/media/6bb4f7126dfda10d8e19dcd9a4dfa23a/href</a></iframe><h3><strong>Conclusion</strong></h3><p>This project was an excellent introduction into creating game playing agents. At the conclusion of this project, I created a React web application that allows a player to compete against my game playing agent — Check it out here <a href="http://isolation.secdevops.ai/">isolation.secdevops.ai</a> or checkout my code on <a href="https://github.com/secdevopsai/AIND-Isolation">Github</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4012eb18d11" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackervalleystudio/artificial-intelligence-nanodegree-game-playing-agent-a4012eb18d11">Artificial Intelligence Nanodegree: Game Playing Agent</a> was originally published in <a href="https://medium.com/hackervalleystudio">Hacker Valley Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Nanodegree: Project 1]]></title>
            <link>https://medium.com/@ronaldeddings/ai-nanodegree-project-1-48d785d6208d?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/48d785d6208d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[nanodegree]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Fri, 28 Apr 2017 07:11:01 GMT</pubDate>
            <atom:updated>2017-04-28T16:56:07.196Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*ByWybtsC3mNJfYGSJp4CXQ.png" /></figure><p>In Project 1 of Artificial Intelligence Nanodegree we leverage techniques such as constraint propagation and depth first search search to solve sudoku puzzles. I’m assuming that everyone reading this post understands the rules of sudoku — If not, don’t worry, I was not completely familiar with the game before the project. A lot of this code for the project was provided by Udacity so for this post I will not be including code snippets. All my code can be found on GitHub <a href="https://github.com/ronmajic/Udacity-AI-Nanodegree">here</a>.</p><h3>Setting Up and Encoding the board</h3><p>The first task of the project is to assign variables and write functions that can encode the board. Long story short, the goal is to write a function that can take an 81 character input and store the column/row and box value in a Python dictionary. For example,</p><pre><strong>Input: </strong>..3.2.6..9..3.5..1..18.64….81.29..7.8..67.82.26.95..8..2.3..9..5.1.3.., </pre><pre><strong>Output:<br></strong>{&#39;A1&#39;:&#39;.&#39;,&#39;A2&#39;:&#39;.&#39;,&#39;A3&#39;:&#39;3&#39;,&#39;A4&#39;:&#39;.&#39;,&#39;A5&#39;:&#39;2&#39;,....}</pre><p>Fortunately, the project provided a function that displays the sudoku board once we have it properly encoded.</p><pre>. . 3 |. 2 . |6 . . <br>9 . . |3 . 5 |. . 1 <br>. . 1 |8 . 6 |4 . . <br>------+------+------<br>. . 8 |1 . 2 |9 . . <br>7 . . |. . . |. . 8 <br>. . 6 |7 . 8 |2 . . <br>------+------+------<br>. . 2 |6 . 9 |5 . . <br>8 . . |2 . 3 |. . 9 <br>. . 5 |. 1 . |3 . .</pre><p>The next step is to assign a value to the boxes that have a nonnumerical value. More specifically, replace all boxes that contain ‘.’ with ‘123456789’.</p><h3>Constraint Propagation</h3><p>Constraint Propagation is a constraint satisfaction technique that reduces search space by using local constraints. As mentioned in the first paragraph, we are going to implement depth first search so reducing the search size is very important for fast and efficient puzzle solving. For this sudoku project, each box has constraints (I kind of think of them as rules) that can lead us to a solved sudoku puzzle.</p><h3>Constraint: Elimination</h3><p>A rule in Sudoku is that a box cannot have the same value as one of it’s peers (other boxes in it’s 3x3 square, row, and column). We can begin to use this rule as a constraint and eliminate possibilities with the boxes that have ‘123456789’ as their value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e4NNvF2EyUyiAdpG2ZOPKg.png" /></figure><p>Writing a function for this constraint instantly reduces the values on the board (See Below).</p><pre><strong>Input:</strong><br>. . 3 |. 2 . |6 . . <br>9 . . |3 . 5 |. . 1 <br>. . 1 |8 . 6 |4 . . <br>------+------+------<br>. . 8 |1 . 2 |9 . . <br>7 . . |. . . |. . 8 <br>. . 6 |7 . 8 |2 . . <br>------+------+------<br>. . 2 |6 . 9 |5 . . <br>8 . . |2 . 3 |. . 9 <br>. . 5 |. 1 . |3 . .</pre><pre><strong>Output:</strong><br>   45    4578    3   |   49     2     147  |   6     5789    57  <br>   9    24678    47  |   3      47     5   |   78    278     1   <br>   25    257     1   |   8      79     6   |   4    23579   2357 <br>---------------------+---------------------+---------------------<br>  345    345     8   |   1     3456    2   |   9    34567  34567 <br>   7    123459   49  |  459   34569    4   |   1    13456    8   <br>  1345  13459    6   |   7     3459    8   |   2     1345   345  <br>---------------------+---------------------+---------------------<br>  134    1347    2   |   6     478     9   |   5     1478    47  <br>   8     1467    47  |   2     457     3   |   17    1467    9   <br>   46    4679    5   |   4      1      47  |   3    24678   2467</pre><p>Obviously, this technique does not reduce the values of all the boxes to a single possibility so we must employ other strategies.</p><h3>Constraint: Only Choice</h3><p>To reduce the possible combinations of each box further we employ only choice strategy as a constraint. This strategy works by searching for boxes that have a possible combination that are not seen by other peers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*4xJ1cDzNEc1Q198_MB1ZGw.png" /></figure><p>The 3rd box in column three contains [1,4,7]. When observing other boxes in the 3x3 square you can notice that none of them have 1 as a possibility. Therefore, the 3rd box in column 3 has to be 1.</p><p>We can now use elimination and iteratively use only choice to solve the sudoku puzzle. To quickly and efficiently solve the puzzle we implement depth first search.</p><h3>Search</h3><p>For this project we leveraged Depth First Search to solve a sudoku puzzle. This search algorithm leverages the reduced size of the puzzle returned from eliminate and only choice, then brute forces the last possibilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*ek3o2LlAR2cmqmCfonUQ9w.png" /></figure><p>Udacity provides excellent images to visualize depth first search. With this search technique we are essentially iterating through all the reduced possibilities to solve the sudoku puzzle (Starting with boxes with the least amount of possibilities first).</p><h3>Constraint: Naked Twins</h3><p>One of the requirements of project 1 was to implement the naked twins sudoku strategy. More specifically, when a box has two possible combinations and shares the same possible combinations with another peer (hence naked twins), either of those combination values can be removed from other peers. In the puzzle below two peers have and share the same two possible combinations [2,3].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*ADuAMG7629TDPhUOzUFd8Q.png" /></figure><p>Naked twins strategy enables us to eliminate 2 and 3 from the other peers in this column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*-JRzy98ZtbOYBNLLM9NYpg.png" /></figure><h3>Conclusion</h3><p>This project was enjoyable and pretty straight forward. It was nice that Udacity provided some training wheels (some complete functions provided beforehand). If you’re interested in checking out the source code check out my Github page <a href="https://github.com/ronmajic/Udacity-AI-Nanodegree">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48d785d6208d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginning My Machine Learning and Artificial Intelligence Sprint]]></title>
            <link>https://medium.com/@ronaldeddings/beginning-my-machine-learning-and-artificial-intelligence-sprint-d16e1c093e81?source=rss-f54a5d83ac51------2</link>
            <guid isPermaLink="false">https://medium.com/p/d16e1c093e81</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nanodegree]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[udacity]]></category>
            <dc:creator><![CDATA[Ronald Eddings]]></dc:creator>
            <pubDate>Mon, 24 Apr 2017 20:47:23 GMT</pubDate>
            <atom:updated>2017-04-25T17:04:07.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9XLNxWinYlS2vISRj7do3g.png" /></figure><p>The purpose of this blog is to document, inspire, and provide accountability for my journey to Machine Learning and Artificial Intelligence. I’ve spent a lot of time in the past reading the journey of others and I’ve found it inspiring and helpful as a resource. If I could provide reading enjoyment or a helpful resource to a single person then my purpose has exceeded expectations.</p><h3>A Short Lived Beginning</h3><p>Two years ago I attended PyCon and took three tutorials on machine learning at the conference. At this time, I was creating a project to ingest, decompile, and index Android applications in efforts to create a search engine to find malicious artifacts in the Google Play Store. Without hesitation, I took the knowledge acquired from PyCon and attempted to create a model using logistic regression that could classify Android applications as clean or malicious. After training the model with 4200 clean and malicious Android applications, I used the model to predict the classification of 800 unknown Android applications. Surprisingly, the model accurately predicted two malicious Android applications (Maybe I’ll talk about the precision of all predictions later). During this time, machine learning was very new to me and everything under the hood appeared to be black magic. This project and my practice with machine learning was short lived since I decided to switch companies shortly after implementing the model.</p><h3>A Second Shot at Machine Learning</h3><p>In September 2016 I moved from the East Coast to Silicon Valley with the hopes of surrounding myself with like minded people who are passionate about technology. Like everyone else in the Silicon Valley, all I ever hear about is machine learning and artificial intelligence. To understand the extent of the hype, I researched conferences that are focused on Machine Learning and AI. To my surprise, I found more than 20 annual conferences! A buddy and I decided to attend MLConf in San Francisco and hear about how companies are implementing machine learning. After going to the conference, I thought to myself what happened if I would have continued to learn about Machine Learning… Instead of fretting on the past I decided to give ML another shot.</p><h3>To Math or Not to Math (Flunking Out)</h3><p>Since September, I’ve enrolled into several machine learning classes and have even wandered to a few meetups. I’m a firm believer that learning can be easier when you’re completely surrounded by those with similar interests. Unfortunately, on this journey I’ve flunked out of quite a few MOOC Machine Learning courses. During the flailing and failing process I discovered that starting over so frequently helped me solidify some concepts. For example, it took me quite some time to understand the math of basic machine learning algorithms such as linear regression.</p><p>If you’re researching where to start with Machine Learning I’m sure you’ve run into tutorials and courses that have a prerequisite of Calculus, Statistics, and/or Linear Algebra. I’ve painfully learned why math is so important in Machine Learning and I regretfully tell you that these skills will ultimately have to be obtained. If you’re not a math wiz or entusiest I’d highly recommend starting with Udacity’s Linear Algebra refresher course. Why? Because this course is not painfully boring and strengthens Python skills. As for calculus, I’ve bounced around many learning resources and have yet to find a single resource that explains all the concepts to my liking while offering enough practice.</p><h3>Where I’m Heading Next</h3><p>At this point I’ve completed several intro machine learning courses on Udemy, Stanford Machine Learning course by Andrew Ng, and subscribed to tens of podcasts and YouTube channels. This week I began the Artificial Intelligence Nanodegree program by Udacity. I’m excited to dive into the content and can share with the world. I’ll be posting new content as each project is completed. While you’re waiting, I’d recommend checking out this book:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*KQVyF8AG4nmJRMHui3K7Rw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d16e1c093e81" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>