1. Introduction
The Andhra Pradesh Coastal Security Police (CSP), also known as the Marine Police Wing, is a specialized unit of the Andhra Pradesh Police responsible for safeguarding the state's coastline, coastal waters, fishing communities, harbours, and maritime assets.
Its primary objective is to prevent:
- Terrorist infiltration through sea routes
- Smuggling of narcotics, arms, and contraband
- Illegal immigration and human trafficking
- Maritime crimes
- Threats to coastal infrastructure and ports
2. Historical Background
Before 2008: Coastal security in India was primarily the responsibility of the Indian Navy and the Indian Coast Guard. State police had only a limited role in maritime security.
Impact of the 26/11 Mumbai Attacks: The terrorist attacks on 26 November 2008 exposed major vulnerabilities in India's coastal security framework. The terrorists entered India through the sea route, highlighting the need for stronger coastal policing. As a result, the Government of India strengthened the Coastal Security Scheme (CSS) and directed all coastal states, including Andhra Pradesh, to establish dedicated Coastal Security Police Stations and Marine Police units.
3. Andhra Pradesh Coastline
Andhra Pradesh has one of the longest coastlines in India — earlier official figure approximately 974 km, with a recent revised estimate of approximately 1,053 km.
Coastal Districts: Srikakulam, Vizianagaram, Visakhapatnam, Kakinada, Konaseema, Eluru, Krishna, Bapatla, and Nellore.
4. Formation of Coastal Security Police
Phase-I: The Government of India sanctioned 6 Coastal Police Stations, 18 Patrol Boats, 12 Four-Wheel Vehicles, and 18 Motorcycles.
Phase-II: Additional infrastructure was sanctioned including more Coastal Police Stations, Interceptor Boats, Communication Systems, Marine Equipment, and residential & operational facilities. Today, Andhra Pradesh operates approximately 21 Coastal Police Stations along its coastline.
5. Major Responsibilities
- Monitoring coastal waters
- Patrolling beaches and estuaries
- Watching fishing harbors
- Identifying suspicious activity
- Counter-terrorism surveillance
- Prevention of illegal infiltration
- Monitoring foreign vessels
- Protection of coastal infrastructure
- Drug & arms trafficking
- Gold & wildlife smuggling
- Contraband movement
- Cyclone response
- Missing boat operations
- Maritime emergencies
- Disaster management support
6. Key Coastal Police Stations
| Station | District |
|---|---|
| Kalingapatnam | Srikakulam |
| Rushikonda | Visakhapatnam |
| Vakalapudi | Kakinada Region |
| Gilakaladindi | Krishna |
| Suryalanka | Bapatla |
| Dugarajapatnam | Nellore |
7. Organisational Structure & Coordination
The Coastal Security Police works closely with: AP Police, Indian Coast Guard, Indian Navy, Customs Department, Fisheries Department, Intelligence Agencies, and Port Authorities — a multi-agency approach known as Coastal Security Architecture.
8. Equipment & Assets
- Fast Interceptor Boats
- Patrol & Rescue Boats
- GPS Navigation Systems
- Marine Radios & Satellite Communication
- Four-Wheel Drive Vehicles
- Motorcycles
- CCTV Surveillance Systems
- Control Rooms & Drone Surveillance
9. Sagar Kavach Exercise
Sagar Kavach is a nationwide coastal security exercise conducted periodically to test preparedness, simulate terrorist infiltration attempts, improve inter-agency coordination, and validate response mechanisms. Participants include the Indian Navy, Coast Guard, Coastal Police, Fisheries Department, Intelligence Agencies, and Port Authorities.
10. Key Challenges
- Manpower Shortage: Significant gap between sanctioned strength and available personnel
- Boat Maintenance: Several interceptor boats require periodic maintenance and upgrades
- Large Operational Area: Over 1,000 km of coastline with hundreds of fish landing centers and numerous ports
- Technology Integration: Need for real-time vessel tracking, AI-based threat detection, and integrated command centers
11. Strategic Importance
Andhra Pradesh is strategically important due to its long coastline on the Bay of Bengal, major ports including Visakhapatnam Port and Kakinada Port, a large fishing population, offshore energy infrastructure, and international shipping routes near the eastern coast. Any security breach along this coastline can have implications for national security and economic stability.
12. Technology Stack
Front-end
| Surface | Stack |
|---|---|
| Templating engine | Jinja2 (bundled with Flask) — server-side HTML rendering |
| Markup / Styles | HTML5 · CSS3 with custom Navy-Blue & Gold theme (style.css) |
| Scripting | Vanilla JavaScript — slider, ticker, live visitor counter, modal popups (main.js) |
| Icon library | Font Awesome 6.5.0 (via cdnjs CDN) |
| Admin console | Flask-rendered HTML dashboard — CSRF-protected forms, image upload, live preview |
Back-end
| Component | Package / Version | Role |
|---|---|---|
| Runtime | Python 3.11 | Base language (Docker image: python:3.11-slim) |
| Web framework | Flask >= 3.0 | HTTP routing, Jinja2 rendering, sessions, flash messages |
| CSRF protection | Flask-WTF >= 1.2 | CSRFProtect applied globally to all POST forms |
| Password hashing | Werkzeug (bundled) | PBKDF2-SHA256 for new passwords; legacy SHA-256 fallback |
| DB driver | psycopg[binary] >= 3.1 | Direct SQL queries with dict_row — no ORM |
| Env / Config | python-dotenv >= 1.0 | Loads .env file into os.environ at startup |
| Production server | Gunicorn >= 23.0 | 2 workers · 4 threads · 60 s timeout (Dockerfile CMD) |
| Email (SMTP) | smtplib (stdlib) | Password-reset emails; supports STARTTLS / SSL; configurable via env vars |
| File storage | Local disk (static/uploads/) |
Images saved on server; Cloudinary/GCS URLs still served if present |
| Rate limiting | Custom DB-backed | Login: 5 attempts / 15 min · Contact / API: configurable per-IP window |
Database
| Property | Details |
|---|---|
| Engine | PostgreSQL |
| Default port | 5432 |
| Connection | DATABASE_URL env var (preferred) — or — DB_HOST / DB_PORT / DB_NAME / DB_USER / DB_PASSWORD |
| SSL | Mode require enforced on all TCP connections (skipped for Unix socket paths) |
| Schema init | setup_db.py — creates all tables; run once at first deploy |
| Backup / Restore | backup_db.py → JSON snapshot · restore_backup.py / migrate_from_backup.py |
Infrastructure & Deployment
| Layer | Details |
|---|---|
| Container | Docker — python:3.11-slim base; non-root appuser; port 8080 |
| Hosting platform | Render.com — render.yaml defines web service, build & start commands, env vars |
| Process manager | Procfile: web: gunicorn app:app |
| Release command | python setup_db.py runs automatically on every Render deploy |
Security
| Control | Implementation |
|---|---|
| CSRF | Flask-WTF CSRFProtect — token injected in every form |
| Session hardening | HttpOnly, SameSite=Lax, Secure (HTTPS-only in production), 1-hour lifetime |
| Content Security Policy | Strict CSP header set on every response; frame-ancestors 'none'; object-src 'none' |
| Image validation | Magic-byte check (JPEG / PNG / GIF / WebP) + extension allowlist before any file is saved |
| Password reset | SHA-256-hashed single-use tokens stored in DB; expire in 30 minutes |
| Upload size limit | 50 MB hard cap via MAX_CONTENT_LENGTH |
- Prevent illegal entry/exit through sea routes
- Check smuggling of contraband, narcotics and weapons
- Ensure safety of fishing communities
- Coordinate with central maritime agencies
- Prevent piracy and maritime terrorism
- Respond to maritime emergencies and disasters
To be a world-class coastal security force that:
- Ensures zero illegal infiltration through AP coastline
- Provides rapid emergency response at sea
- Fosters community trust among fishing populations
- Leverages technology for smart maritime surveillance
- Upholds rule of law in AP's territorial waters
Sri HARISH KUMAR GUPTA, IPS
Andhra Pradesh
Sri GOPINATH GETTI, IPS
Visakhapatnam
| NORTH SUB DIVISION | |
|---|---|
| 1 | Baruva |
| 2 | Bhavanapadu |
| 3 | Kalingapatnam |
| 4 | Chintapalli |
| 5 | Rushikonda |
| 6 | Port |
| 7 | Pudimadaka |
| 8 | Penta Kota |
| 9 | Vakalapudi |
| 10 | Odalarevu |
| 11 | Antharvedi |
| SOUTH SUB DIVISION | |
|---|---|
| 1 | Gilakaladindi |
| 2 | Palakayatippa |
| 3 | Orlagonditippa |
| 4 | Suryalanka |
| 5 | Nizampatnam |
| 6 | Kothapatnam |
| 7 | Ramayyapatnam |
| 8 | Dugarajapatnam |
| 9 | Isukapalli |
| 10 | Sriharikota |