diff --git a/bitmask.pro b/bitmask.pro
index dd6c5af6a37574ddc860ca4cfde651ac1bfb1466..28119a7ecf395849020c3293202965630fad28d3 100644
--- a/bitmask.pro
+++ b/bitmask.pro
@@ -7,6 +7,10 @@ unix:DEBUG:CONFIG += debug
 lessThan(QT_MAJOR_VERSION, 5): error("requires Qt 5")
 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
 
+macx {
+    LIBS += -framework Security
+}
+
 # trying to optimize size of the static binary.
 # probably more can be shaved off with some patience
 # You need to recompile your version of Qt to use the libraries you want. The