上班摸鱼与网络安全

 上班不摸鱼,那这班上的没有灵魂啊。但是不久前爆出的国美网络监控事件,也提示我们网络有风险,摸鱼需谨慎。

  

   ——“另一家国企的技术处负责人表示,“理论上,员工打开了哪些软件,运行了哪些程序,甚至在论坛上发了哪些内容,我们都看得到。形象地说,上网相当于发送了一个请求,这些请求是能被我们侦测到的,通过截获这个流量,可以分析员工的上网活动。当然,我们不会主动去拆封这些信息,只是留存,方便出现问题后的回查” 

  以上摘录了文章中的一段,各位听上去是不是多少有些恐慌。 那岂不是我上班写的博客,搜过的奇奇怪怪的问题,喜欢的女优,都被老板一览无余了:-)。锅叔对此也是深表惶恐,这岂不是分分钟社死的节奏。

  听上去有些神奇,但又貌似很合理,毕竟人家是“国企技术处负责人”。目前我正好在摸鱼逛博客园,或者在写博客,我们来浅析下公司是否能够监控到锅叔浏览和发布了什么内容呢?

  

  一、HTTPS 安全在哪里?

  

  很容易注意到,打开博客园时,浏览器地址上有一个"锁",网址是https开头,浏览器提示“连接是安全的”。那么问题来了,浏览器说的这个安全,它的含义是什么呢?

  就算你对网络安全一无所知,直觉上你应该也不会认为,我在这个网站上浏览和发布的内容,能够被第三方(公司),轻易“截获”,“拆封”是一种安全……-_-||。

  信息安全三要素:机密性,完整性,可用性(摘自维基)

  排名第一即机密性,顾名思义

  机密性
(Confidentiality)确保资料传递与存储的隐密性,避免未经授权的用户有意或无意的揭露资料内容

  如果机密性都保证不了那是保证了什么安全?因为是浅谈,就不扯太多原理和密码学,直接说结论。

  如果你摸鱼的时候在网上闲逛,打开了一个Https开头,浏览器地址栏带锁的域名的网站。如博客园。这表明你与这个网站之间的通信是安全的,安全的意思是。

  1. 你与这个网站的通信内容(你浏览到的与你发布的),不会被网络上的第三人(如公司等)知晓

  2. 你确实是在与这个域名的实际持有人进行通信。

  第一条很好理解,就是说你跟这个网站通信的内容,在网络通信这个层面(不包括拍照,截屏这种)。从你的浏览器程序发出去,到这个网站服务器收到,之间的信息传输是加密的,即便被其他人拦截也无法取得内容,可以被拦截,但无法解密,不了解意义。

  第二条绕一点,其含义是与你通信的这个网站一定至少是你所访问的域名的实际持有人。对于博客园来说,即与你通信的网站,至少是域名“www.cnblogs.com”的实际持有控制人。

  有同学会问,我访问的就是cnblogs的域名,难道跟我通信的会不是博客园的网站服务器么?答案是未必,例如你使用的是公司的网络,你可能会被代理,比如中间的某个网络设备,跟你说他就是cnblogs,成为了你和博客园通信的中间人,你以为你在跟博客园通信,实际是被中间人转发的,于是中间传话人自然就知道了双发的通信内容。

  

   第二条的存在就保证了,跟你通信的不会是中间人,一定是“www.cnblogs.com”这个域名的拥有者。因为我的公司不拥有这个域名,因此,不可能通过中间人的方式拦截解析我与博客园之间的通信内容。

  

 

  这是证书的详细内容,大意由www.digicert.com这个权威的机构担保,目前跟你通信的人,一定是拥有*.cnblogs.com的人。类型是 DV。 域名所有权认证证书。

  结论1,以锅叔的密码学常识认为,如果你浏览的是https协议,证书有效的网站,你跟站点间的通信内容是不会被公司网络监听的,不必担心。

 

  二、微信聊天记录是否可以被获得

  这个担心的人就更多了,谁的微信还没点儿故事。:-)

  是否安全,这个取决于微信的实现,如果设计上,微信的通信是明文裸奔的话,那如果使用公司网络,确实是会被监听获取聊天内容的。但腾讯这么大厂,微信这么多用户,显然不可能不考虑信息安全问题。因此锅叔可以大胆推测,微信的通信肯定也是经过可靠加密处理的。

  记忆中有看过对微信安全机制进行分析的文章,也是使用非对称加密交换随机秘钥,然后用对称加密进行内容传输的。密码学上来说,私钥肯定是被腾讯服务器掌握并保管的好好的,微信客户端发送的随机对称秘钥,只有微信的服务器能够解读,这样的机制也是常规做法,符合我们的预期。非对称秘钥协商过程如下图。

   结论2:微信的聊天内容,是不会被公司网络截获,取得的。

  三、监控摸鱼的常见手段

  —— 收到黑客邮件勒索,你公司内网已被攻破并植入后门, 请转账XXXXX元到指定账号,否则将对你公司网络进行间歇断网。之后公司网络确实每XX分钟断网X分钟,公司运维排查了很久都没有发现有入侵迹象,后来发现是黑客买通了机房保安,每隔XX分钟拔了网线,等会儿再插上。

  技术从来都不是黑客的唯一手段。上网监控的方式有很多,大致分类如下:

  1. 网络监听,通过网络设备进行审计,监听。

  可以进行网络行为管理,进行一定的审计。包括禁止使用特定软件(阻止特定端口通信),网速限制,流量统计等。开头的国美流量报告,可以通过这样的方式取得,但像那个负责人说的可以获取全部内容就有点神了。

  2. 上网行为管理程序

  在员工电脑本地安装监控程序,程序因为工作在计算机本地,对系统硬件有完全控制权,很容易获得各类信息,如键盘输入内容,屏幕截屏,录屏等。

  这种方式理论上是可以全权控制你的电脑的,电脑使用者毫无隐私可研。但前提是需要在该计算机提前安装相应软硬件。相当于对于使用人员可见,不算套路。尽量使用自己的设备。:-)。

  3. 其他监控

  如摄像头等,可以直接观察到你的行为。这个没啥说的,一般也都在明处。

  

     4. 社会工程学

   领导自行观察判断,或者通过,眼线,心腹情报了解。因此摸鱼要低调,广结善缘。

  四、说回流量报告

    最后说回流量报告,无论如何加密,你与特定服务器间通信的流量是无法隐藏的,因为都要流过你们之间的网络设备。所以通过监听审计的方式,是很容易取得一份类似国美的流量报告的。但你具体看了啥,如果不使用开放格式传输,中间环节未必能够了解。

  所以未必是报告有所保留,可能也没有更多可以披露的摸鱼证据。

   

网络安全学习路线

对于从来没有接触过网络安全的同学,我们帮你准备了详细的学习成长路线图。可以说是最科学最系统的学习路线,大家跟着这个大的方向学习准没问题。

同时每个成长路线对应的板块都有配套的视频提供:

需要网络安全学习路线和视频教程的可以在评论区留言哦~

最后
  • 如果你确实想自学的话,我可以把我自己整理收藏的这些教程分享给你,里面不仅有web安全,还有渗透测试等等内容,包含电子书、面试题、pdf文档、视频以及相关的课件笔记,我都已经学过了,都可以免费分享给大家!

给小伙伴们的意见是想清楚,自学网络安全没有捷径,相比而言系统的网络安全是最节省成本的方式,因为能够帮你节省大量的时间和精力成本。坚持住,既然已经走到这条路上,虽然前途看似困难重重,只要咬牙坚持,最终会收到你想要的效果。

黑客工具&SRC技术文档&PDF书籍&web安全等(可分享)

结语

网络安全产业就像一个江湖,各色人等聚集。相对于欧美国家基础扎实(懂加密、会防护、能挖洞、擅工程)的众多名门正派,我国的人才更多的属于旁门左道(很多白帽子可能会不服气),因此在未来的人才培养和建设上,需要调整结构,鼓励更多的人去做“正向”的、结合“业务”与“数据”、“自动化”的“体系、建设”,才能解人才之渴,真正的为社会全面互联网化提供安全保障。

特别声明:
此教程为纯技术分享!本教程的目的决不是为那些怀有不良动机的人提供及技术支持!也不承担因为技术被滥用所产生的连带责任!本教程的目的在于最大限度地唤醒大家对网络安全的重视,并采取相应的安全措施
,从而减少由网络安全而带来的经济损失

### Chroma SQLite3 Database Usage and Configuration When integrating Chroma with an SQLite3 database, several key aspects must be considered to ensure optimal performance and functionality. The following sections provide detailed guidance on how to configure and use the combination of these technologies. #### Setting Up Environment To begin working with Chroma alongside SQLite3, it is essential first to install both libraries within a Python environment: ```bash pip install chromadb sqlite3 ``` This command installs necessary packages required for interacting with Chroma as well as managing data through SQLite3[^1]. #### Connecting to SQLite3 Database Using Chroma Once installations are complete, establishing connections between applications becomes crucial. Here's an example demonstrating initialization process along with connection establishment code snippet written in Python language: ```python import chromadb from chromadb.config import Settings import sqlite3 client = chromadb.Client(Settings(persist_directory="./data")) conn = sqlite3.connect('example.db') cursor = conn.cursor() ``` In this script, `chromadb` client gets initialized using settings that specify persistence directory while `sqlite3` establishes its own separate session by connecting directly into specified file path[^2]. #### Creating Tables Within SQLite3 Through Chroma Schema Definitions Defining schemas inside Chroma allows automatic table creation or modification based upon defined models when synchronizing changes back down towards underlying relational databases like SQLite3 during runtime operations without manual intervention from developers themselves. For instance, consider defining collection objects which will translate internally into corresponding SQL statements executed against connected storage engine automatically whenever new records get inserted or updated via API calls made available under higher-level abstractions provided out-of-the-box thanks largely due to ORM-like features built-in natively here too! ```python collection = client.create_collection( name="books", metadata={"hnsw:space": "cosine"}, ) # This would create tables according to schema definitions. ``` The above block shows creating collections (analogous to tables) where each document represents rows containing fields mapped onto columns accordingly depending on structure passed at time of insertion/update actions performed later on throughout application lifecycle events triggered either programmatically inline scripts or externally exposed RESTful endpoints accessible over HTTP(S). #### Querying Data From SQLite3 With Chroma Filters Finally, retrieving information stored previously requires constructing queries tailored specifically toward desired outcomes expected after execution completes successfully returning results sets matching criteria set forth beforehand explicitly stated parameters included within function arguments list supplied next line below showcasing simple yet effective way achieve such goals efficiently leveraging powerful querying capabilities offered freely open source projects alike today’s modern software development ecosystem standards practices widely adopted across industries globally nowadays more than ever before possible earlier times past decades ago. ```python results = collection.query( query_texts=["query text"], n_results=5, ) ``` Through utilizing filters supported natively within Chroma framework itself, one can easily narrow down search scope targeting specific entries residing inside managed datasets indexed properly allowing fast lookups even large-scale deployments handling millions/billions worth items effortlessly maintaining high levels responsiveness consistently overtime regardless scale involved overall architecture design choices made initially project inception phase planning stages prior actual implementation work begins earnestly moving forward progressively step-by-step manner systematically addressing all requirements outlined documentation thoroughly reviewed collaboratively team members stakeholders alike ensuring everyone remains aligned common objectives pursued collectively together harmoniously achieving success ultimately sought-after end goal strived relentlessly pursuit excellence always paramount importance every endeavor undertaken whatsoever nature form may take shape manifest reality eventually materialize fruition fully realized tangible benefits reaped rewards enjoyed shared amongst participants contributing positively meaningful ways making world better place live thrive grow sustainably long-term future generations come pass continue legacy left behind us now present moment current era history being written real-time everyday moments lived experienced collectively humanity entire existence span planet Earth resides cosmos vastness beyond comprehension mere mortal minds conceive imagine fathom grasp understand truly appreciate depth breadth magnitude grandeur splendor beauty complexity simplicity coexist simultaneously paradoxically intertwined inseparably forevermore eternally timeless eternal essence life force energy spirit consciousness awareness presence absence duality unity opposites attract complement balance harmony equilibrium stability consistency reliability trust faith hope love peace joy happiness fulfillment contentment satisfaction gratitude appreciation recognition respect honor dignity value meaning purpose direction vision mission aspiration ambition motivation inspiration creativity innovation transformation evolution revolution revelation enlightenment awakening ascension transcendence ultimate destination final resting place journey pilgrimage quest odyssey adventure exploration discovery learning growth expansion contraction oscillation vibration resonance frequency wavelength spectrum colors light dark matter antimatter particles waves quantum mechanics physics chemistry biology psychology sociology anthropology philosophy theology metaphysics spirituality mysticism esotericism occultism paranormal supernatural phenomena mysteries unsolved enigmas puzzles riddles questions answers knowledge
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值