Website Scan Security Controls and Limits
Scan security covers two questions: where a scanner may connect, and who may see the evidence that it finds today. DaletScope fetches sites for its users and stores evidence, so a bad URL or weak check could cause real harm. A bad URL could point the fetcher at your internal network, or a weak gateway identity check could expose scans. Each control is built into the scanner, and a short list names the duties that stay with your operations team. DaletScope holds no security certification, so treat this page as a map of what to test and not as assurance.
Key takeaway
Scan security in DaletScope starts at the fetch with an address guard and a pinned resolver, and it ends with row-level security on tenant data. The product holds no security certification, and your operator supplies the gateway, TLS, secrets and backups.
What can go wrong when a scanner fetches a user URL?
A scanner makes outbound requests to addresses that a user typed in. Also, that is the classic setup for server-side request forgery. Next, an address that looks public can resolve to a private one.
A redirect can bounce the request to an internal address. A DNS answer can change between the check and the connection.
The second risk sits on the inbound side. In fact, scan evidence records which merchants a team is reviewing and what it concluded. Scan security therefore also covers identity, tenant separation and production settings.
Why does scan security start at the fetch and not later?
The fetch guard sits in two small modules of the scanning engine. They use the standard library and the resolver hook of the HTTP client. As a result, a reviewer can read them in one sitting.
The first check needs no network and rejects a URL on its face.
- Only the http and https schemes pass.
- A URL with a user name or password is refused.
- A malformed port or a missing host is refused.
- The names localhost and localhost.localdomain are refused.
- An address in a private, loopback, link-local, reserved, multicast or unspecified range is refused.
An IPv4-mapped IPv6 address is judged on the embedded IPv4 value. That closes one common bypass. Also, other IPv6 forms use the ranges of the standard library.
The engine also refuses a URL over 4,096 characters and any URL with whitespace or control characters.
How does pinned DNS stop a rebinding attack on a fetch?
A name that passes the first check still has to resolve. Next, the engine resolves the hostname and requires every returned address to be public. Hence, if one address is private, the whole request is refused.
The lookup runs off the main event loop. As a result, a slow name server does not stall other requests.
The next step stops DNS rebinding. In fact, the HTTP client gets a custom resolver that knows only the addresses just validated. If the client asks for any other host, the resolver raises an error.
The connection can reach only the validated addresses, even if the name server later answers differently.
How does the guard run again on every redirect hop?
The fetcher turns off automatic redirects and follows them itself, up to five. For each hop it repeats the scheme check, the address check and the pinned resolution before it sends the request. A relative redirect is resolved against the current address first.
A redirect from a public site to an internal address therefore fails at the hop. The fetcher also requests exactly the URL that you gave it. Next, it never guesses paths such as an admin page.
That keeps a scan to one page plus domain checks. The platform overview explains what that means for coverage.
Which size, time and storage limits bound each scan we run?
Three limits bound a scan. The body is capped at 5 MiB. Next, a response that declares a larger length is refused. A body that grows past the cap while streaming is cut at the cap.
The fetch has a 15 second timeout. In fact, the whole scan has a 120 second deadline.
A scan that times out returns a 504 and stores a failed row. Indeed, an unreachable target returns a 502 and also stores a failed row. A rejected URL returns a 400 and stores nothing.
The stored address drops credentials, query strings and fragments.
Does the same address guard cover the domain checks too?
The domain analyzer reads robots.txt, the sitemap and well-known files. It resolves the host to public addresses and pins them, as the page fetch does. Also, its certificate probe connects to a validated address.
The social link probe uses the pinned resolver too. Only for reviewed social domains.
Candidate URLs for the PhishTank lookup pass the address check before any call. Next, they also lose their user information, query and fragment. Hence, review this as one shared guard and not as several controls.
The fake shop detection page shows how your team configures the lookup.
How does gateway identity work when users never log in?
DaletScope does not log users in. In fact, your trusted gateway injects three required headers for tenant, user and capabilities. It can add user level, organization type, email and location identifiers.
Missing required headers return a 401. Also, a malformed or nil tenant or user value returns a 400.
When a gateway secret is configured, every request must carry it, and DaletScope compares it in constant time. Indeed, a wrong or missing secret returns a 401. Production start refuses a gateway secret outside 32 to 512 printable characters.
In a development environment the secret is unset by default. As a result, never expose a development instance.
Why does the database decide who the user really is?
Headers are claims and not facts. The service looks the user up inside a session that is scoped to the claimed tenant. Also, the row must exist, be active and belong to that tenant.
A forged tenant header finds no row. The request ends with a 403.
The capabilities then pass through an intersection. Next, the service keeps only those in both the header and the stored user record. As a result, a header can never widen the rights of a user. In fact, location lists must be distinct, non-nil and at most 128 values.
A scan request that names a location outside that list gets a 403. However, scan reads are not filtered by location.
What do the seven capability names allow on the server?
Seven capability names are valid: scan, view, analyst, senior analyst, compliance, export and admin. Any other name is rejected. The scan capability creates a scan.
The view, scan and analyst capabilities read the scan list, the detail, the business brief, the dashboard and the catalogue.
The compliance and admin capabilities open the evidence retention and legal hold routes. They open the metrics endpoint as well. Locale bundles and the sandbox take no tenant headers. Thus, the reason is that the sandbox uses its own signed token.
Two names have no server-side route gate today. The senior analyst capability is valid, but no route requires it. Next, the interface hides export buttons without the export capability.
However, a hidden button is not a server control. Enforce export rules at your gateway or in your role design.
Why does row-level security keep tenants apart in the data?
How is the policy set up on each of the tables?
The first migration enables and forces row-level security on the scans and users tables. In fact, the retention migration does the same for legal matters and hold events. Each table carries a policy named tenant isolation.
It compares the tenant of the row to a setting that the session writes before any query.
The policy has two parts. One filters which rows a query can see. Indeed, the other checks the rows that an insert or update writes. As a result, a tenant cannot save a row that carries another tenant identifier.
The technology catalogue has no tenant column and no policy. The reason is that it is reference data that is identical for every tenant.
Why must the database role be unable to bypass the policy?
Forced row-level security does not bind a superuser or a role with the bypass attribute. Production start therefore inspects the live database role. Also, it refuses a superuser, a bypass role, a role that can create roles or databases.
One that owns public tables. It also refuses a role with unexpected privileges.
The Compose setup creates two roles. An owner role runs migrations. In fact, a separate runtime role serves requests with an explicit grant list.
A check step refuses a runtime role that matches the owner. Production also refuses passwords under 16 characters and passwords that equal each other or a role name.
How do rate limits and response headers harden the service?
Token buckets limit requests per minute for each verified identity. The defaults are 1,000 per tenant, 200 reads per user and 50 writes per user. The limiter runs after the database check.
As a result, rotating a forged tenant header cannot mint fresh buckets. Thus, a limited request gets a 429 with a retry hint.
These stores are bounded at 10,000 buckets each by default. Also, the least recently used bucket is evicted first. The limiter is process-local, so each running copy counts alone.
Put gateway-level rate limits in front if you run several instances.
Every response carries hardening headers. They block content sniffing, framing and caching. They set a strict referrer policy.
The headers also cover error responses and browser preflight replies.
A validation failure returns a 422 that lists field names and error types and never echoes the submitted value. An unexpected failure returns a generic 500. The interactive API documentation pages are off in production.
What does the service refuse at start, and in each image?
In production, the service refuses to start with wildcard origins or hosts. Origins must be https with no path. Hosts must be well-formed names.
Debug mode, a debug log level and out-of-range pool or rate settings also stop the start.
A configured language model needs an https address or the internal gateway host. It also needs a strong key and a known model name. The DaletRecord provider connects with its own credentials.
The Compose file builds each image from a base that is pinned by digest. The application and web containers run with read-only root filesystems and a small writable scratch space. They get no new privileges.
All Linux capabilities are dropped.
The database sits on an internal network with no outside route. Ports bind to 127.0.0.1 by default. These choices reduce the attack surface. They are not a hardened-image certification.
What must your operator supply for scan security to hold?
Several controls belong to your deployment. In fact, put a gateway in front that authenticates users, strips browser-supplied identity headers and injects verified ones. Terminate TLS at that gateway as well.
Set explicit origins and hosts. Indeed, generate the database and gateway secrets outside version control.
Plan backups and restore tests, because scans are permanent evidence. Thus, add monitoring, log shipping and network egress rules. If your policy requires encryption at rest, provide it at the disk or database layer.
Also, the integration points page repeats these duties for each connection.
How does evidence retention fit with scan security as one?
Scans are permanent evidence, and no job purges them by age. Next, each one carries an earliest review date 25 calendar years after the observation. It also carries an integrity digest over its permitted projection.
Compliance or admin users can place a scan under a legal hold through immutable legal matters and append-only hold events.
A regulated team should plan deletion requests outside the product and note that gap in its assessment. The replay command can score a stored scan again without network access. In fact, the audit trail page shows how teams file the evidence with a case.
Which limits and open items should you tell a reviewer?
The guard checks addresses and redirects, which is only one layer of scan security. It does not judge the content of a page. It is not a malware sandbox.
It does not test credentials or run page scripts. Indeed, the score is one input to a human decision.
Rate limits apply per process. Links to DaletMart, DaletForge and DaletReach connect with your own accounts and credentials. Next, a tenant scan reads one page plus domain checks. The score limits article covers how to read what a scan cannot show.
How do you review scan security yourself with your team?
Give your security reviewer this page and the security documentation. Ask them to test five items. First, a URL that points at a private address.
A redirect that attempts to reach one.
Second, a forged tenant header with a valid user. Third, a capability that the user lacks.
Fourth, a second tenant that attempts to read the scans of the first tenant. Fifth, a production start with a weak secret. In fact, then plan the gateway, TLS and backups with your operator.
The reason is that scan security is shared work. The implementation plan shows where those checks fit in a first project.
What do security staff ask about the controls of a scan?
Does DaletScope hold a security certification?
No. SOC 2 readiness program underway; controls aligned with the AICPA Trust Services Criteria. Treat this page as a map of what to test and not as an assurance. A container hardening setup is not a hardened-image certification either.
How does DaletScope stop a scan from reaching internal systems?
Every URL and every redirect hop passes an address check. The resolver is pinned to the validated public addresses, so DNS rebinding fails. Private, loopback, link-local and reserved names are refused.
Who proves the identity of a caller?
Your trusted gateway injects the identity headers, and the database confirms the user. The user row must exist, be active and belong to the claimed tenant. A forged tenant header ends with a 403.
How is one tenant kept from reading the scans of another?
Row-level security is enabled and forced on tenant tables, with a policy keyed on the tenant setting of the session. Production start also refuses a database role that could bypass the policy.
Which controls does my operator still have to supply?
The gateway, TLS, secrets, backups, monitoring, log shipping and network egress rules. If your policy needs encryption at rest, provide it at the disk or database layer.
Can the rate limits be relied on across several instances?
No, the limiter is process-local, so each running copy counts alone. Put gateway-level limits in front if you run several instances.
See how DaletScope fits the providers your team uses today
Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.