Beyond the Technical - Advise for those starting in Infosec

One question I get on a regular basis is “I want to start a career in infosec where do I start?” and when I ask in what area of infosec one of the most common answer if not the only one is “I want to hack”. When I hear this, I see the focus is mostly on doing cool stuff, that is their strategic goal. I believe having this goal is not a bad one since they are looking for something that will fulfill them and they find fun but, in my opinion, I find it to be also a goal that will lead to more stress and frustration since it will not match reality. You see when one works in information security consulting or as an internal team the business goal of your customer is the security of the system, your goal is to provide as much as possible a service that ensures that all security risk that can be managed are covered. What does this then entail for the person that wants to become a practitioner? It means that since they work under the context of value to the business that a lot of their work will be around how they can best serve the goals of the business without impacting them in a negative manner. What does this mean for the person that wants to be great at their job in infosec, you have to remember not everyone wants to be great many just want to do tasks they like and that ambition of being great professionally is not part of their goals, for those that do it means that they have to focus on areas other than the technical side of TTPs and IOCs. The areas of study and focus should be:

 

How does a business operate, one has to remember that depending on customer one has to ask how are they structured, what do they do and what are the business goals? Without this basic information one does not have the proper context to make decisions on the actions they need to do.

  • Understand Team dynamics, in addition to the regular business processes, one also needs to cultivate political collateral, by this I mean to understand the different inter department and internal department politics, build rapport with the leaders of the teams and their key members. Many times, when it comes to getting thing done this built collateral will help in getting things approved and also come in to play in better understanding what level of effort will be involved to get things done since all play a part and they buy in will dictate the tempo of operation.

  • Soft skills, any consultant with experience will tell you that the quality of the reports and presentations that are the results of an engagements will make or break the reputation of the consultancy, if recommendations are implemented and if one becomes a trusted advisor or not that gets brought in in the future. This is where having that business knowledge and political collateral come in to play because one can tailor how information is presented so it has the biggest impact.

  • Understanding the market, many practitioners will subscribe to podcasts, YouTube channels and blogs on only the area they are interested in, be it attack emulation or incident response, security operations or DevSec but very few subscribe to other technology podcasts that discuss enterprise technology. Gaining this information is key in to understanding where to allocate time to study and practice since those with the knowledge in those areas when a enterprise decides to look in to it will have a higher advantage, also when operating in enterprises many do not focus on those systems with the depth of knowledge that may be needed to know how to target and communicate in relation to it. (Examples are Software as a Service, Platform as a Service and Infrastructure as a Service in cloud environments).

  • Investment on self, one area that I hear complains constantly of those that are in a field and been able to get their foot in the door is lack of personal development planning in consultancies and business. My normal advice may sound harsh but a softer version of it is to don’t care and invest in one self, it is an investment that with time and effort will provide compound interests. Don’t wait for others but move first, many resources are free like the Microsoft Virtual Academy, others are low cost like Udemy, others provide a wider range of subjects missed by the technical side like LinkedIn Learning. The important part is to plan and invest in yourself, outwork the naysayers.

 

As you can see there is a lot of foundational areas of understanding and mastery outside of the technical, in fact many of these areas dictate where you invest your time and resources when it comes on what you focus on the technical realm since at the end of the day you are providing a business with a service.

An example from when I was a Senior Solution Architect working on how to secure a new datacenter for a customer in Central America. The datacenter was going to be hosting very important data. As part of my prepwork I made sure to find out the mission statement for the government agency I was working with, how did the project and goals related to the mission statement, who where the backers of the project, their motivation and many more in lunches, conference calls and any other opportunity. When I flew back to work on the plan I knew how to target my wording and phases of the project design to ensure each of the stakeholders inside and outside the agency would resonate with parts of it and ensure the rest in some way supported their individual goal and agendas in one manner or the other. This ensure quick buy in and ensured as a pushed for stuff to be monitored, controls be placed on different areas that the benefits expressed for each would mean that they would be putting in risk their own goals and ambitions in risk, I hacked the organizational thinking structure you may say. This is something that it is not a bit that is on or off, it was me getting out of my confort zone and being happy that my boss at the time took the time to mentor me and forced me to go to project management training, sales training, effective communication seminar and many other stuff outside of my technical area of expertise so he could have a more balanced resource.

Your mentality has to be to never be outworked by the competition. or unprepared for the situation, always striving to be balanced and not leave stuff to chance. Set your standard, work on achieving it and then set a new one.

Operational Thoughts in Trying Times

This post is as much as a reminder to myself of where I should focus on the multiple jobs I have and also share with the community are large what I consider important and key in this trying times.

Last year a dinner I had a very nice conversation with my friend Ed Skoudis on security consultancies and how many operated. This conversation covered many aspects from markets, politics, engagement best practices, retention of employees, and knowledge collection. Later at the end of the year, I had a good brainstorming session with Andrew Thompson via DMs on how recessions and the cyclical up and down of markets may change security consultancies where those that can adapt the faster, have worked to provide the greatest diverse value and have planned ahead for the changes will be the ones to dominate when the market is down. The initial seed for these conversations came from multiple videos from Gary Vee. I think with what is currently happening with COVID19 pandemic I would like to share my options on this.

Half of my career in infosec has been as a lead or a manager leading groups from 2 all the way to 24 in multiple projects. I had the luck to be in organizations that during some time periods I had some of the best upper managers, in my opinion, I could ever wish for. Under them, I saw companies grow exponentially and produce some of the best resources I have ever worked with. I now from time to time advise startups as part of my work for an incubator and I would like to share some of the advice I give based on the experience I have so far.

Read More

Getting DNS Client Cached Entries with CIM/WMI

What is DNS Cache

The DNS cache maintains a database of recent DNS resolution in memory. This allows for faster resolution of hosts that have been queried in the recent past. To keep this cache fresh and reduce the chance of stale records the time of items in the cache is of 1 day on Windows clients. 

The DNS Client service in Windows is the one that manages the cache on a system, This time Window can be modified via the registry in the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters where the MaxCacheTtl property controls the time in the cache in seconds and the MaxNegativeCacheTtl property controls the time a failed response is cached.  

Why is it Important

For an attacker, it means primarily situational awareness. It allows him to know what other systems this host has accessed and the IP address of the host. This may allow identifying security platforms by the FQDNs used as well as business process systems, both internal or in the cloud. On an important note for the attacker is that if his implant/agent on the system does not include its own resolution capability it has an IOC present on the system that can be used to track its command and control infrastructure. 

For a defender, the ability to know what hosts a system may have connected to in the last 24 hours. This will permit a defender to query across his environment for hosts that are communicating or have communicated with a specific host if DNS resolution was part of the process and if the attacker is not using its own resolution method. If the attacker is “Living off the Land” and using OS tools it will still leave the femoral trace on the system until the cached entry TTL (Time to Live) expires.

MSFT_DNSClientCache class

In Windows 8/2012 Microsoft added the MSFT_DNSClientCache class into the CIM object database in Windows. The class is under the new namespace that was also added to Root\StandardCimv2 and the resources are provided as part of the DnsClientCim.dll. This allows us to query for instances of the class and get all entries for the DNS Cache database. 

Read More

Being Grateful at Heilderburg

Recently while in the bar of the Crown Plaza in Heidelberg for the Troopers conference I became aware of the number of how grateful I should be for what I have in this industry. For what I’m grateful for is not technical or recognition but of the group of people in the industry, I have the honor to call friends.

I would like to share some of them in this blog post. While coming back from dinner at Heidelberg JD also known as @SadProcessor send me a DM that several of our friends are at the hotel bar and even so I don't drink I should come down and hang out. I was jet lag but had not seen many of them in months so I said to myself “Why not” so I went down.

Read More

Operating Offensively Against Sysmon

Sysmon is a tool written by Mark Russinovich that I have covered in multiple blog post and even wrote a PowerShell module called Posh-Sysmon to help with the generation of configuration files for it. Its main purpose is for the tracking of potentially malicious activity on individual hosts and it is based on the same technology as Procmon. It differs from other Sysinternals tools in that Sysmon is actually installed on the host and saves its information in to the Windows Eventlog so it is easier to be able to collect the information with the use of SIEM (Security Information and Event Management) tools. 

 Sysmon has the capability to log information for:

  • Process Creation and Termination

  • Process changing a file creation time.

  • Network Connection

  • Driver Load

  • Image Load

  • CreateRemoteThread

  • Raw Access Read of a file

  • A process opens another process memory

  • File Creation

  • Registry Events

  • Pipe Events

  • WMI Permanent Events 

Read More