# Insecure Network Socket

> Detects plain TCP sockets without TLS wrapping used for sensitive network communication.

- Skill: `zakirkun/insecure-network-socket` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add zakirkun/insecure-network-socket`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zakirkun/insecure-network-socket/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: zakirkun (https://skillmd.com/u/zakirkun)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zakirkun/insecure-network-socket

---


# Insecure Network Socket

## Overview
Plain TCP sockets transmit data unencrypted. Any network observer can intercept credentials, session tokens, and sensitive data. Applications should use TLS-wrapped sockets for all sensitive communication.

## Detection Strategy
- `socket.socket()` in Python without ssl.wrap_socket()
- `net.Socket` in Node.js instead of `tls.connect()`
- `net.Dial("tcp", ...)` in Go instead of `tls.Dial`

## Remediation
Wrap all sockets in TLS using the appropriate library:
- Python: `ssl.create_default_context()` + `context.wrap_socket()`
- Node.js: `tls.connect()` or `https`
- Go: `tls.Dial()` or `crypto/tls`

