From nobody Tue Jul 12 11:26:29 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 30A671D225A7 for ; Tue, 12 Jul 2022 11:26:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lhz3S6Txvz3hq4 for ; Tue, 12 Jul 2022 11:26:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lhz3S5Z4nzhvZ for ; Tue, 12 Jul 2022 11:26:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26CBQSg6079396 for ; Tue, 12 Jul 2022 11:26:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26CBQShm079395 for bugs@FreeBSD.org; Tue, 12 Jul 2022 11:26:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265167] netstat on Linux has a flag to find hte program that does portbinding, FreeBSD does not Date: Tue, 12 Jul 2022 11:26:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: gnu X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: microlaser@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657625188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EfJBf6gqoQiK/7taUHdqk3PmA67SawigJ6eawkpnXlU=; b=JPOU/RmfTasUy1G7/7F7iIaAkBK232k58StE2cMJAgKs+UNdh1C8QSRirvQhbHRERCKn0q XN/XqY9y2tZRXjAlQonka3fW8q9K+lS3fAbWqNKmzL17Ht0Vhv7CJ7Uyylo6dP/mRfeYRt tCy6InL9Dqs+ZLwfUTYXoUTNF0tlJp4/HLW4qgspKtgfAc/ZP5T1LYBl6UXskjyfNN6wQj YriY2CRRRxMIEfecdUVOPzxs4YVyoocpiSemxf+Madc93dzSS543DGNPzVKLRv44WIwpu5 T5F8HGOgdZ1T6U08iYCmydbniL14xRNubr3j9e41xplK81GIzHwwlHItxDjXYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657625188; a=rsa-sha256; cv=none; b=j+xuWhyhXcjkFc6WQSV2X0mByObQXvknizUEAQCphWNqfpKCXZFqNKQDtZM2pZHQgyrfDE VD5tQeotvSZF6w6XHkgodH7DD7O1fT8o52B9/rf/qfDwVRF96JtoYUcX8u9aFmr/kPyBbd WcRkb+aIZSTACF6DR+6/zM8r1wUf6lInz7IcgA0A1jCg69nrURrMLNJPbx32T9Fqg9FnjJ JCT9J3V2/8J4Ml6ZGlSHgHKnGaU1nMDoR9X/3L62uDGBNuIv23EHSD317L5BZkkaYPj7Nm hscznqtMRY/zD5Krgl/1ViGabqHAJcay73WHaTm7lIXraCmUo2LuUvkAAgd6bQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265167 Bug ID: 265167 Summary: netstat on Linux has a flag to find hte program that does portbinding, FreeBSD does not Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: gnu Assignee: bugs@FreeBSD.org Reporter: microlaser@gmail.com netstat on Linux has a flag that allows you to identify the program that is binding to the port, you can run "netstat -pan" and the -p flag tells you t= he program that makes the portbinding. This can be used to find reverse shells which I have witnessed being used by state threat actors. It is very hard = to find a reverse shell on FreeBSD because this flag is missing, and if you lo= ok at the man page there is no correlating flag that does the same thing. I realized this is a feature request but the Freebsd source code is the basis= of super-secure OpenBSD and MacOS, and so it makes sense to push the change to improve netstat analysis to FreeBSD and let the others follow course.=20=20 Thank you, Michael Lazin --=20 You are receiving this mail because: You are the assignee for the bug.=