<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rohan Singh Rajput</title>
    <description>The latest articles on DEV Community by Rohan Singh Rajput (@rohan_singhrajput_39e0fa).</description>
    <link>https://dev.to/rohan_singhrajput_39e0fa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4192818%2Fcf214fc2-5e7b-4f24-b387-48f590b725e0.png</url>
      <title>DEV Community: Rohan Singh Rajput</title>
      <link>https://dev.to/rohan_singhrajput_39e0fa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rohan_singhrajput_39e0fa"/>
    <language>en</language>
    <item>
      <title>Your Domain Is Public. But Do You Know What It Reveals? A Practical Security Assessment Guide</title>
      <dc:creator>Rohan Singh Rajput</dc:creator>
      <pubDate>Sun, 18 Oct 2026 20:10:57 +0000</pubDate>
      <link>https://dev.to/rohan_singhrajput_39e0fa/your-domain-is-public-but-do-you-know-what-it-reveals-a-practical-security-assessment-guide-3792</link>
      <guid>https://dev.to/rohan_singhrajput_39e0fa/your-domain-is-public-but-do-you-know-what-it-reveals-a-practical-security-assessment-guide-3792</guid>
      <description>&lt;h1&gt;
  
  
  Your Domain Is Public. But Do You Know What It Reveals? A Practical Security Assessment Guide
&lt;/h1&gt;

&lt;p&gt;Imagine this.&lt;/p&gt;

&lt;p&gt;You manage a small business website. The homepage loads correctly, HTTPS works, and customers can contact your team without any problems. Everything looks fine.&lt;/p&gt;

&lt;p&gt;Then you discover an old subdomain that nobody on your current team remembers. Its DNS records still exist. A certificate was issued for it months ago. Your inventory doesn't mention it.&lt;/p&gt;

&lt;p&gt;Is it a vulnerability?&lt;/p&gt;

&lt;p&gt;Not necessarily. But it raises a question worth answering: &lt;strong&gt;Do you know what your domain exposes publicly, and can you explain why each finding matters?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is the starting point for an external attack surface assessment. It is not about finding the largest number of assets or treating every observation as a critical security issue. It is about collecting evidence, validating what you find, and deciding what deserves attention.&lt;/p&gt;

&lt;p&gt;In this guide, we'll walk through a practical workflow that website owners, developers, and security learners can use on domains they own or are explicitly authorized to assess.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, understand what you're assessing
&lt;/h2&gt;

&lt;p&gt;An external attack surface includes the internet-facing domains, subdomains, addresses, services, and related infrastructure that may affect an organization's security.&lt;/p&gt;

&lt;p&gt;Consider a fictional company called Northstar Retail. Its public footprint might include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;northstar.example&lt;/code&gt; — the main website&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;shop.northstar.example&lt;/code&gt; — an online store&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;api.northstar.example&lt;/code&gt; — an application API&lt;/li&gt;
&lt;li&gt;DNS records that identify addresses, mail services, and other infrastructure&lt;/li&gt;
&lt;li&gt;TLS certificates and HTTP response headers that reveal configuration details&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These names are illustrative; &lt;code&gt;.example&lt;/code&gt; is reserved for documentation.&lt;/p&gt;

&lt;p&gt;The important point is that the homepage is only one piece of the picture.&lt;/p&gt;

&lt;p&gt;If you're new to the subject, start with &lt;a href="https://cybersurfacemap.com/learn/what-is-an-external-attack-surface" rel="noopener noreferrer"&gt;What Is an External Attack Surface?&lt;/a&gt;. For a broader introduction to the relationship between domains, DNS, subdomains, and addresses, read &lt;a href="https://cybersurfacemap.com/learn/domains-subdomains-dns-ip-addresses" rel="noopener noreferrer"&gt;Domains, Subdomains, DNS, and IP Addresses Explained&lt;/a&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 1: Find out where your domain resolves
&lt;/h1&gt;

&lt;p&gt;A domain name is easier for people to remember than an IP address. DNS helps clients discover the information they need to reach the intended destination.&lt;/p&gt;

&lt;p&gt;For a domain you're authorized to assess, inspect its IPv4 and IPv6 records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig example.com A +short
dig example.com AAAA +short
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;example.com&lt;/code&gt; with your own domain.&lt;/p&gt;

&lt;p&gt;An A record identifies IPv4 addresses; an AAAA record identifies IPv6 addresses. If multiple addresses are returned, compare them with your known hosting, CDN, and infrastructure configuration.&lt;/p&gt;

&lt;p&gt;Ask yourself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Do the returned addresses match the infrastructure I expect?&lt;/li&gt;
&lt;li&gt;Are any results unfamiliar or no longer documented internally?&lt;/li&gt;
&lt;li&gt;Could the result be affected by a CDN, load balancer, or DNS provider?&lt;/li&gt;
&lt;li&gt;When was this information last checked?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not jump straight from “I don't recognize this address” to “I've found a vulnerability.” First establish whether it belongs to your organization, a trusted provider, or an expected service.&lt;/p&gt;

&lt;p&gt;DNS results can change, and different resolvers may return different answers. A lookup is evidence from a particular point in time, not a guarantee of a complete asset inventory.&lt;/p&gt;

&lt;p&gt;For a deeper explanation of name resolution, follow the &lt;a href="https://cybersurfacemap.com/learn/dns-fundamentals-and-name-resolution" rel="noopener noreferrer"&gt;DNS Fundamentals and Name Resolution guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Read the DNS records, not just the IP address
&lt;/h2&gt;

&lt;p&gt;DNS records reveal different aspects of how a domain is configured.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Record&lt;/th&gt;
&lt;th&gt;What to look for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A / AAAA&lt;/td&gt;
&lt;td&gt;IPv4 and IPv6 address mappings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNAME&lt;/td&gt;
&lt;td&gt;Aliases pointing to other domain names&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MX&lt;/td&gt;
&lt;td&gt;Mail routing configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NS&lt;/td&gt;
&lt;td&gt;Nameservers responsible for a zone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TXT&lt;/td&gt;
&lt;td&gt;Published text data, including some verification and email-policy records&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SOA&lt;/td&gt;
&lt;td&gt;Administrative and timing information for a DNS zone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAA&lt;/td&gt;
&lt;td&gt;Restrictions on which certificate authorities may issue certificates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DS / DNSKEY&lt;/td&gt;
&lt;td&gt;Public DNSSEC-related information&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You can query some of the common record types using &lt;code&gt;dig&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig example.com MX +short
dig example.com NS +short
dig example.com TXT +short
dig example.com CAA +short
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For additional reference, Cloudflare maintains a practical &lt;a href="https://developers.cloudflare.com/dns/manage-dns-records/reference/dns-record-types/" rel="noopener noreferrer"&gt;DNS record type guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here's the question to ask: &lt;em&gt;Does this configuration make sense for the service that is supposed to use it?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A mail record may be expected. A CNAME to a third-party platform may be intentional. A missing record may be entirely normal. The security review begins when you compare observed configuration with the expected configuration.&lt;/p&gt;

&lt;p&gt;If you need help understanding record values, continue with &lt;a href="https://cybersurfacemap.com/learn/dns-records-explained" rel="noopener noreferrer"&gt;DNS Records Explained&lt;/a&gt;. If you're troubleshooting changes that don't appear consistently, see &lt;a href="https://cybersurfacemap.com/learn/dns-caching-ttl-and-propagation" rel="noopener noreferrer"&gt;DNS Caching, TTL, and Propagation&lt;/a&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 3: Discover subdomains that your inventory may have missed
&lt;/h1&gt;

&lt;p&gt;Subdomains can outlive the projects that created them. A testing environment may be retired, a team may change, or an old application may be replaced without every record being reviewed.&lt;/p&gt;

&lt;p&gt;Certificate Transparency (CT) logs provide one source of publicly observable certificate information. Because certificates can include names associated with a domain, CT records can help identify subdomains that deserve an inventory review.&lt;/p&gt;

&lt;p&gt;Google explains the purpose of this system in its &lt;a href="https://developers.google.com/public-key-infrastructure/faq/what-is-certificate-transparency" rel="noopener noreferrer"&gt;Certificate Transparency overview&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Discovery, however, is not the same as confirmation.&lt;/p&gt;

&lt;p&gt;A name in a certificate record does not prove that the host is currently online, belongs to the same team, or has a security weakness. Some records may be old, and some services may be managed by third parties.&lt;/p&gt;

&lt;p&gt;For every discovered name:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Compare it with your known asset inventory.&lt;/li&gt;
&lt;li&gt;Identify its owner and business purpose.&lt;/li&gt;
&lt;li&gt;Confirm whether it is still required.&lt;/li&gt;
&lt;li&gt;Use only authorized methods for any further testing.&lt;/li&gt;
&lt;li&gt;Record the decision and remove or remediate assets through the appropriate owner.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;CyberSurfaceMap's subdomain intelligence scanner uses passive Certificate Transparency discovery with a fallback provider. It does not actively resolve, connect to, or port-scan the subdomains it discovers.&lt;/p&gt;

&lt;p&gt;For a more detailed workflow, read &lt;a href="https://cybersurfacemap.com/learn/subdomain-enumeration-defensive-asset-discovery" rel="noopener noreferrer"&gt;Subdomain Enumeration for Defensive Asset Discovery&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Look at the website's HTTP and HTTPS responses
&lt;/h2&gt;

&lt;p&gt;The browser sees more than the rendered webpage. HTTP responses also contain status codes, redirect information, content types, and headers.&lt;/p&gt;

&lt;p&gt;For a website you control, you can inspect its root response using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sSI&lt;/span&gt; https://example.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review the status code and response headers. Check whether redirects lead to the expected destination and whether the website consistently uses HTTPS.&lt;/p&gt;

&lt;p&gt;Some response headers communicate security-related instructions to browsers. Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Content-Security-Policy (CSP):&lt;/strong&gt; restricts the sources from which a page may load resources and can help reduce the impact of certain injection attacks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strict-Transport-Security (HSTS):&lt;/strong&gt; tells browsers to use HTTPS for future connections to the host.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X-Content-Type-Options:&lt;/strong&gt; can prevent browsers from MIME-sniffing certain responses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MDN's &lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers" rel="noopener noreferrer"&gt;HTTP response header reference&lt;/a&gt; explains these and other headers. OWASP's &lt;a href="https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/14-Other_HTTP_Security_Header_Misconfigurations/" rel="noopener noreferrer"&gt;HTTP security header testing guidance&lt;/a&gt; provides additional context for reviewing configuration.&lt;/p&gt;

&lt;p&gt;A missing header is not automatically proof of an exploitable vulnerability. Its relevance depends on the application, the threat, and the surrounding configuration.&lt;/p&gt;

&lt;p&gt;Also remember what this command actually checks: one response from the root endpoint. It does not inspect every page, API, authenticated area, or application behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Review TLS and certificate information
&lt;/h2&gt;

&lt;p&gt;HTTPS depends on Transport Layer Security (TLS) to protect connections between clients and servers.&lt;/p&gt;

&lt;p&gt;For an endpoint you own, the following command can display information about the certificate presented during the TLS connection:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl s_client &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-connect&lt;/span&gt; example.com:443 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-servername&lt;/span&gt; example.com &lt;span class="se"&gt;\&lt;/span&gt;
  &amp;lt;/dev/null 2&amp;gt;/dev/null &lt;span class="se"&gt;\&lt;/span&gt;
  | openssl x509 &lt;span class="nt"&gt;-noout&lt;/span&gt; &lt;span class="nt"&gt;-subject&lt;/span&gt; &lt;span class="nt"&gt;-issuer&lt;/span&gt; &lt;span class="nt"&gt;-dates&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review the certificate's subject, issuer, and validity dates. Then consider whether the certificate covers the intended hostname and whether the service's TLS configuration meets your requirements.&lt;/p&gt;

&lt;p&gt;For a fuller perspective on secure TLS configuration, read the &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP Transport Layer Security Cheat Sheet&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Certificate metadata alone does not establish that the entire deployment is secure. A deeper assessment may need to examine protocol support, certificate-chain validation, and additional configuration details.&lt;/p&gt;

&lt;p&gt;CyberSurfaceMap collects TLS and certificate metadata alongside HTTP and HTTPS response information. The documented scanner uses lightweight requests to the root endpoint; it is not a full website crawl.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Check what your DNS records say about email security
&lt;/h2&gt;

&lt;p&gt;Email-related DNS records can provide useful evidence about a domain's published authentication configuration.&lt;/p&gt;

&lt;p&gt;For example, SPF records are commonly published in TXT records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig example.com TXT +short
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;DMARC records are typically queried at &lt;code&gt;_dmarc&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig _dmarc.example.com TXT +short
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for SPF values beginning with &lt;code&gt;v=spf1&lt;/code&gt; and DMARC values beginning with &lt;code&gt;v=DMARC1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;These records help describe how a domain publishes email authentication policies, but the presence of a record does not prove that every email is authentic or that the entire email system is configured correctly. DKIM checks can also require knowing the relevant selector.&lt;/p&gt;

&lt;p&gt;A compromised, legitimate mailbox can still be used to send fraudulent messages. That is why technical evidence must be considered alongside the context of the request and, where appropriate, independent verification.&lt;/p&gt;

&lt;p&gt;CyberSurfaceMap extracts SPF information and queries DMARC records as part of its DNS intelligence workflow. For a more complete explanation, see &lt;a href="https://cybersurfacemap.com/learn/spf-dkim-dmarc-email-authentication-explained" rel="noopener noreferrer"&gt;SPF, DKIM, and DMARC Explained&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For suspicious messages, these additional guides are useful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://cybersurfacemap.com/learn/how-to-read-email-headers" rel="noopener noreferrer"&gt;How to Read Email Headers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cybersurfacemap.com/learn/how-to-detect-email-spoofing" rel="noopener noreferrer"&gt;How to Detect Email Spoofing Before You Pay&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 7: Turn observations into decisions
&lt;/h2&gt;

&lt;p&gt;You've now gathered several types of evidence. The next challenge is deciding what deserves attention first.&lt;/p&gt;

&lt;p&gt;Imagine your review identifies three observations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An unfamiliar subdomain appears in publicly observable certificate records.&lt;/li&gt;
&lt;li&gt;Your domain publishes an email policy record that you don't fully understand.&lt;/li&gt;
&lt;li&gt;Your website returns a security header that differs from your preferred configuration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Treat these as investigation items—not three confirmed vulnerabilities.&lt;/p&gt;

&lt;p&gt;For each item, record:&lt;/p&gt;

&lt;p&gt;Evidence: What exactly was observed, and when?&lt;/p&gt;

&lt;p&gt;Context: Is the asset or configuration expected? Who owns it?&lt;/p&gt;

&lt;p&gt;Impact: What could happen if the issue is genuinely relevant?&lt;/p&gt;

&lt;p&gt;Confidence: Has the observation been verified, or is further evidence needed?&lt;/p&gt;

&lt;p&gt;Action: Should you remediate a configuration, confirm ownership, or perform an authorized follow-up check?&lt;/p&gt;

&lt;p&gt;Risk assessment helps organize this work, but it should not replace judgment. A public DNS record may be entirely appropriate, while a seemingly minor configuration issue may matter considerably in a particular application.&lt;/p&gt;

&lt;p&gt;CyberSurfaceMap normalizes scanner output into structured findings and evaluates them to produce a risk score, level, and contributing factors. The score is an aid for organizing investigation; it is not a guarantee that every possible weakness has been identified.&lt;/p&gt;

&lt;p&gt;You can read the &lt;a href="https://cybersurfacemap.com/learn/how-cybersurfacemap-assesses-domain-security" rel="noopener noreferrer"&gt;CyberSurfaceMap security assessment methodology&lt;/a&gt; for details about the supported checks, how findings are handled, and the limitations of the assessment.&lt;/p&gt;

&lt;h1&gt;
  
  
  A repeatable 20-minute starting checklist
&lt;/h1&gt;

&lt;p&gt;For an authorized domain, start with these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Confirm that the domain and any assets being reviewed are in scope.&lt;/li&gt;
&lt;li&gt;Compare A and AAAA records with your expected infrastructure.&lt;/li&gt;
&lt;li&gt;Review relevant DNS records and identify unexplained configurations.&lt;/li&gt;
&lt;li&gt;Check passive sources for candidate subdomains.&lt;/li&gt;
&lt;li&gt;Inspect the root HTTP/HTTPS response and redirect behavior.&lt;/li&gt;
&lt;li&gt;Review available TLS certificate information.&lt;/li&gt;
&lt;li&gt;Check SPF and DMARC records where email authentication is relevant.&lt;/li&gt;
&lt;li&gt;Document findings, confidence, ownership, and next actions.&lt;/li&gt;
&lt;li&gt;Verify important findings before treating them as vulnerabilities.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Twenty minutes is a starting estimate, not a guarantee. Large or complex environments require more time and a more comprehensive inventory.&lt;/p&gt;

&lt;p&gt;If you'd prefer to bring several of these public signals into one workflow, explore &lt;a href="https://cybersurfacemap.com/" rel="noopener noreferrer"&gt;CyberSurfaceMap&lt;/a&gt;. It is designed to collect domain, DNS, passive subdomain, HTTP/HTTPS, TLS, and security-header intelligence and organize the resulting findings for review.&lt;/p&gt;

&lt;h1&gt;
  
  
  Final thoughts
&lt;/h1&gt;

&lt;p&gt;A useful domain security assessment is not the one that produces the longest report. It is the one that helps you understand what is visible, distinguish facts from assumptions, identify which observations matter, and determine what to do next.&lt;/p&gt;

&lt;p&gt;Start with assets you are authorized to review. Collect evidence carefully. Verify the important findings. Keep the inventory current.&lt;/p&gt;

&lt;p&gt;The objective is not to prove that a domain is perfectly secure. It is to reduce uncertainty and make better-informed defensive decisions.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>websecurity</category>
      <category>website</category>
      <category>security</category>
    </item>
  </channel>
</rss>
