# Unnecessary Public Surface

> Exposing more endpoints, ports, or interfaces publicly than the function requires, enlarging the attack surface.

Record: `lexicon:unnecessary-public-surface`
Kind: anti-pattern
Layer: [Security Core](https://banes-lab.com/records/layer/security-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-unnecessary-public-surface

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Uncontrolled Change](https://banes-lab.com/records/lexicon/uncontrolled-change.md) and before [Unrestricted Access](https://banes-lab.com/records/lexicon/unrestricted-access.md).

## Category

- [Security Privacy Compliance](https://banes-lab.com/records/lexicon-category/security-privacy-compliance.md)

## Negated by

- [Attack Surface Reduction](https://banes-lab.com/records/architecture/attack-surface-reduction.md)

## Linked from

- [Security / Privacy / Compliance / Governance](https://banes-lab.com/ontology/principles/architecture-category-security-privacy-compliance-governance.md)
