2.1 Information gathering & Vulnerability scanning: passive reconnaissance Flashcards
What is reconnaissance?
Focuses on gathering as much information on the target as possible and can be either passive or active
What is footprinting?
Figuring out exactly what type off system the organization uses to be able to attack them in the next phase of assessment
What is passive reconnaissance?
Attempts to gain information about targeted computers and networks without actively engaging with those systems (e.g. online search, social engineering, dumpster diving, email harvesting)
What is Open-Source Intelligence (OSINT)?
The collection and analysis of data gathered from publicly available sources to produce actionable intelligence (e.g. social media, blogs, newspapers, government records, job listing, metadata, website info etc)
What type of valuable information are pentester looking for when doing OSINT?
- Roles different employee have
- Different teams and departments
- Contact information
- Technical aptitude and security training
- Employee and managerial mindset
How to do start an OSINT investigation?
Start with the organization’s own social media profiles and accounts (e.g. LinkedIn, Monster, Indeed, ZipRecruiter, Glassdoor etc)
What is a metadata?
The data about the data in the file
OSINT tools: what are OSINT tools for?
Open-source intelligence tools that find actionable intelligence from various publicly available sources such as public websites, whois database, DNS servers
OSINT tools: what’s Metagoofil for?
A Linux-based tool that can search the metadata associated with public documents located on a target’s website
OSINT tools: what’s Fingerprinting Organizations with Collected Archives (FOCA)?
Used to find metadata and hidden information in collected documents from an organization
OSINT tools: what’s The Harvester?
A program for gathering emails, subdomains, hosts, employee names, email addresses, PGP key entries, open ports and service banners from servers
OSINT tools: what’s Recon-ng?
Uses a system of modules to add additional features and functions for your use. It is a cross-platform web reconnaissance framework
OSINT tools: what’s Shodan?
A website search engine for web cameras, routers, servers, and other devices that are considered part of the Internet of things
OSINT tools: what’s Censys?
A website search engine used for finding hosts and networks across the Internet with data about their configuration
OSINT tools: what’s Maltego?
A piece of commercial software used for conducting open-source intelligence that helps connect those relationships.
It can automate the querying of public sources of data and then compare it with other info from various sources
What’s a DNS?
Domain Name Server (DNS) helps network clients find a website using human readable hostnames instead of numeric IP addresses
DNS information: what’s Address (A) Record?
Links a hostname to an IPv4 address
DNS information: what’s AAAA Record ?
Links a hostname to an IPv6
DNS information: what’s Canonical Name (CNAME) Record?
A Canonical Name (CNAME) record is a type of DNS record used to specify that a domain name is an alias for another domain name. In other words, it allows a domain to be known by multiple names. For example, if you have a website called “example.com” and you also want it to be accessible via “www.example.com,” you can use a CNAME record to indicate that “www.example.com” is an alias of “example.com”.
DNS information: what’s Mail Exchange (MX) Record?
A Mail Exchange (MX) record is a type of DNS record that specifies the mail server responsible for receiving and handling email messages on behalf of a domain. When someone sends an email to an address within a specific domain, the sender’s mail server uses DNS to look up the MX records for the recipient’s domain to determine where to deliver the email. The MX record contains the name of the mail server and a priority value, which indicates the order in which mail servers should be used. This allows for redundancy and load balancing in the email delivery process.
DNS information: what’s Start of Authority (SOA) Record?
Stores important information about a domain or zone
DNS information: what’s Pointer (PTR) Record?
Correlates an IP address with a domain name
DNS information: what’s Text (TXT) Record?
A Text (TXT) record is a type of DNS record used to associate arbitrary text with a host or other name. It is often used to carry human-readable information, such as a sender’s email address or a brief note about the host. Additionally, TXT records are commonly used in various internet protocols, such as SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail), to verify the legitimacy of an email message.
DNS information: what’s Service (SRV) Record?
Specifies a host and port for a specific service
DNS information: what’s Nameserver (NS) Record?
It specifies which name servers are authorized to respond to DNS queries for a specific domain name. These records indicate the authority over the DNS zone of a domain by specifying the name servers that are responsible for providing information about that domain. In other words, NS records indicate which servers are the sources of authority for the DNS resolution of a domain. This allows for the delegation of management of subdomains to other name servers while maintaining a hierarchical structure in the domain name system.
DNS information: while doing an OSINT, what record can you check to gather information on email and SaaS solutions?
Focus on MX, TXT and SRV records
DNS information: what’s Name Server Lookup (nslookup)?
Tool to query the DNS to provide the mapping between domain names and IP addresses or the other DNS records
DNS information: what’s Whois?
A command line tool on Linus, which is also a website, that is a query and response protocol for Internet resources.
Public repositories: what public source code repositories for?
- Websites that allow developers to work together in an agile way to create software very quickly.
- Private files can sometimes be mistakenly classified as public for anyone to find
- GitHub, Bitbucket, SourceForge
Public repositories: why should you search for website archives/caches?
Deleted data can still exist somewhere on the Internet. You can use Wayback Machine