# Unnecessary Public Surface

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

Record: `lex: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#lex-unnecessary-public-surface

## category

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

## referenced-by

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