Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions security/lightscope/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PORTNAME= lightscope
DISTVERSION= 1.0
CATEGORIES= security python
MASTER_SITES= https://github.com/Thelightscope/thelightscope/releases/download/v${DISTVERSION}/

MAINTAINER= e@alumni.usc.edu
COMMENT= Network security telescope and honeypot for cybersecurity research
WWW= https://thelightscope.com

LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dpkt>=0:net/py-dpkt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pcapy-ng>=0:net/py-pcapy-ng@${PY_FLAVOR}

USES= python shebangfix
SHEBANG_FILES= *.py
NO_BUILD= yes
NO_ARCH= yes

SUB_FILES= lightscope
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}

do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/lightscope.conf.sample ${STAGEDIR}${PREFIX}/etc/
${INSTALL_SCRIPT} ${WRKDIR}/lightscope ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions security/lightscope/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1735660000
SHA256 (lightscope-1.0.tar.gz) = ddef11e6818224e4df0fd477e29a85dcc1da61c960436aaf027a42d5b362fcd1
SIZE (lightscope-1.0.tar.gz) = 13326
6 changes: 6 additions & 0 deletions security/lightscope/files/lightscope.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
#
# LightScope entry point script
# Forwards all commands to the Python daemon
#
exec %%PYTHON_CMD%% %%DATADIR%%/lightscope_daemon.py "$@"
14 changes: 14 additions & 0 deletions security/lightscope/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
LightScope is a network security telescope and honeypot system designed for
cybersecurity research. It monitors network traffic by analyzing firewall
logs (pflog) to detect and log blocked connection attempts, providing
valuable data for threat intelligence and research.

Features:
- Real-time pflog monitoring for blocked traffic analysis
- Optional honeypot services to capture attacker behavior
- Automatic data upload to LightScope cloud dashboard
- Low resource footprint suitable for firewall appliances

LightScope contributes anonymized threat data to benefit the security
research community while helping you understand what attacks target your
network.
7 changes: 7 additions & 0 deletions security/lightscope/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
bin/lightscope
@sample etc/lightscope.conf.sample
%%DATADIR%%/__init__.py
%%DATADIR%%/honeypot.py
%%DATADIR%%/lightscope_daemon.py
%%DATADIR%%/pflog_reader.py
%%DATADIR%%/uploader.py
9 changes: 9 additions & 0 deletions security/lightscope/work/.PLIST.flattened
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/usr/local/share/licenses/lightscope-1.0/catalog.mk
/usr/local/share/licenses/lightscope-1.0/LICENSE
/usr/local/share/licenses/lightscope-1.0/BSD2CLAUSE
/usr/local/bin/lightscope
/usr/local/share/lightscope/__init__.py
/usr/local/share/lightscope/honeypot.py
/usr/local/share/lightscope/lightscope_daemon.py
/usr/local/share/lightscope/pflog_reader.py
/usr/local/share/lightscope/uploader.py
13 changes: 13 additions & 0 deletions security/lightscope/work/.PLIST.lightscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/usr/local/share/licenses/lightscope-1.0/catalog.mk
/usr/local/share/licenses/lightscope-1.0/LICENSE
/usr/local/share/licenses/lightscope-1.0/BSD2CLAUSE
bin/lightscope
@sample etc/lightscope.conf.sample
share/lightscope/__init__.py
share/lightscope/honeypot.py
share/lightscope/lightscope_daemon.py
share/lightscope/pflog_reader.py
share/lightscope/uploader.py
@owner
@group
@mode
13 changes: 13 additions & 0 deletions security/lightscope/work/.PLIST.mktmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/usr/local/share/licenses/lightscope-1.0/catalog.mk
/usr/local/share/licenses/lightscope-1.0/LICENSE
/usr/local/share/licenses/lightscope-1.0/BSD2CLAUSE
bin/lightscope
@sample etc/lightscope.conf.sample
share/lightscope/__init__.py
share/lightscope/honeypot.py
share/lightscope/lightscope_daemon.py
share/lightscope/pflog_reader.py
share/lightscope/uploader.py
@owner
@group
@mode
18 changes: 18 additions & 0 deletions security/lightscope/work/.PLIST.readelf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

File: /usr/local/share/licenses/lightscope-1.0/catalog.mk

File: /usr/local/share/licenses/lightscope-1.0/LICENSE

File: /usr/local/share/licenses/lightscope-1.0/BSD2CLAUSE

File: /usr/local/bin/lightscope

File: /usr/local/share/lightscope/__init__.py

File: /usr/local/share/lightscope/honeypot.py

File: /usr/local/share/lightscope/lightscope_daemon.py

File: /usr/local/share/lightscope/pflog_reader.py

File: /usr/local/share/lightscope/uploader.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions security/lightscope/work/.license-catalog.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_LICENSE=BSD2CLAUSE
_LICENSE_NAME=BSD 2-clause Simplified License
_LICENSE_PERMS=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
_LICENSE_GROUPS=FSF OSI COPYFREE
_LICENSE_DISTFILES=lightscope-1.0.tar.gz
1 change: 1 addition & 0 deletions security/lightscope/work/.license-report
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This package has a single license: BSD2CLAUSE (BSD 2-clause Simplified License).
Empty file.
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions security/lightscope/work/lightscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
#
# LightScope entry point script
# Forwards all commands to the Python daemon
#
exec /usr/local/bin/python3.11 /usr/local/share/lightscope/lightscope_daemon.py "$@"
25 changes: 25 additions & 0 deletions security/lightscope/work/lightscope-1.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BSD 2-Clause License

Copyright (c) 2025, USC Information Sciences Institute
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1 change: 1 addition & 0 deletions security/lightscope/work/lightscope-1.0/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# LightScope for OPNsense
Loading