当前位置:网站首页>数据泄露怎么办?'华生·K'7招消灭安全威胁
数据泄露怎么办?'华生·K'7招消灭安全威胁
2022-07-05 12:51:00 【墨天轮】
欢迎收听西虹市电台早间晨报:
T公司系统在 3 月18 日遭到了网络犯罪攻击,数百万客户和潜在客户的数据因此泄密。
C研究院在4月29日报告,一个含有约3500万个人详细信息的神秘营销数据库泄露在网上,居然未设密码。
......
安全事件频发
数据安全应该怎么做?


寻医问药
金仓KES带来新生机!

然而,针对KingbaseES数据库的安全方案,蔡小x仍旧存在着一些疑惑:
七问七答
金仓KES筑牢企业数据安全之盾!
一问:防仿冒
用户标识与鉴别
KingbaseES默认的口令加密算法为SCRAM-SHA-256。它是按照RFC 7677中的描述执行SCRAM-SHA-256认证,可以防止在不可信连接上对口令的嗅探并且支持在服务器上以一种加密哈希的方式存放口令。
KingbaseES数据库的用户信息及密码存储在一个名为sys_authid的数据表中。以下是KES数据库中口令的加密形式,sys_authid表的rolpassword字段显示了加密后的密钥:
test=# select usename,passwd from sys_user where usename in('system','sao','sso');
usename | passwd
---------+----------
system | ********
sao | ********
sso | ********
(3 行记录)
alter system set passwordcheck.enable=on;
alter system set passwordcheck.password_length = 10;
alter system set passwordcheck.password_condition_letter = 3;
alter system set passwordcheck.password_condition_digit = 3;
alter system set passwordcheck.password_condition_punct = 1;
select sys_reload_conf();

alter system set sys_audlog.max_error_user_connect_times = 10;
alter system set sys_audlog.error_user_connect_times = 6;
alter system set sys_audlog.error_user_connect_interval = 60;
select sys_reload_conf();
[test@4-34 bin]$ ./ksql test -U testu1 -p 54324 -h 127.0.0.1
用户 testu1 的口令:
[test@4-34 bin]$ ./ksql test -U testu1 -p 54324 -W -h 127.0.0.1
口令:
ksql: 错误: 无法连接到服务器:致命错误: password authentication failed for user "testu1"
NOTICE: This is the 2 login failed. There are 4 left.
[test@4-34 bin]$ ./ksql test -U testu1 -p 54324 -W -h 127.0.0.1
口令:
ksql: 错误: 无法连接到服务器:致命错误: password authentication failed for user "testu1"
NOTICE: This is the 3 login failed. There are 3 left.
[test@4-34 bin]$ ./ksql test -U testu1 -p 54324 -W -h 127.0.0.1
口令:
ksql: 错误: 无法连接到服务器:致命错误: password authentication failed for user "testu1"
NOTICE: This is the 4 login failed. There are 2 left.
[test@4-34 bin]$ ./ksql test -U testu1 -p 54324 -W -h 127.0.0.1
口令:
ksql: 错误: 无法连接到服务器:致命错误: password authentication failed for user "testu1"
NOTICE: This is the 5 login failed. There are 1 left.
[test@4-34 bin]$ ./ksql test -U testu1 -p 54324 -W -h 127.0.0.1
口令:
ksql: 错误: 无法连接到服务器:致命错误: The user "testu1" is locked.please wait 60 minutes to retry
访问控制
--系统权限实际为创建用户时指定的一些属性权限
--system
--授权
create user u1 with superuser;
--或
alter user u1 with superuser;
create user u2 with createrole;
--或
alter user u2 with createrole;
create user u3 with login;
--或
alter user u3 with login;
create user u4 with createdb;
--或
alter user u4 with createdb;
--列举不全,具体可以查看create user/alter user 语句。
--撤销
alter user u1 with nosuperuser;
alter user u2 with nocreaterole;
alter user u3 with nologin;
alter user u4 with nocreatedb;
--对象权限就是存在于数据库对象上的权限
--准备
--system
create user u1;
create user u2;
--u1
\c test u1
create table testu1(id int);
insert into testu1 values(123);
--u2
\c test u2
select * from testu1; --error
--授权
--u1
\c test u1
--列级权限
grant select(id) on testu1 to u2;
--表级权限
grant select all on testu1 to u2;
--u2
\c test u2
select id from test; -- success
select * from test; -- success
--撤销
revoke select(id) on testu1 from u2;
revoke select all on testu1 from u2;
二问:防篡改
三问:防信息泄露
透明存储加密
create tablespace ts location '/home/kingbase/ts' with(encryption = true, enckey ='k1eyenc2');
--encryption: 标识当前表空间为加密表空间
--enckey: 用户自定义的表空间加密密钥
--sysencrypt.encrypt_user_tablespace
--这个属于加密插件里面的参数,true 为创建的表空间为默认加密表空间,false 则关闭此参数
--如何确认数据是否被加密
--首先确认数据所在加密对象的物理文件位置
--示例:
select oid,relname, relfilenode from sys_class where relname = 'test';
--然后根据此语句查询出来的relfilenode 号找到物理文件所在位置,或是
select sys_relation_filepath(sys_relation_filenode('test'));
--找到数据文件的具体位置
--hexdump -c 数据库文件如果对比其他明文文件是可以很明显的看到数据是加密的,都是一些不可见字符或乱码,证明加密成功。
四问:防抵赖
审计
--数据库审计员设置语句级审计规则,审计类型为select table 语句,审计用户为数据库管理员system,审计对象为public 模式下的tab1
select sysaudit.set_audit_stmt('select table','system','public','tab1');
--数据库安全员设置对象级审计规则,审计类型为table 对象,审计用户为普通用户user1,审计对象为public 模式下的tab2
select sysaudit.set_audit_object('table','user1','public','tab2');
--数据库审计员需要查询视图sysaudit_record_sao,可以查看超级用户(包括数据库管理员system)和数据库安全员的审计日志
select * from sysaudit_record_sao;
--数据库安全员需要查询视图sysaudit_record_sso,可以查看普通用户和数据库审计员的审计日志
select * from sysaudit_record_sso;
五问:防权限提升
三权分立
\c test system
alter user sao rename to sao2;
alter user sso rename to sso2;
\du
select * from sys_authid;
六问:防拒绝服务
七问:安全资质

结语
KingbaseES 是自主研发的高安全性数据库产品,通过全新的结构化系统设计和强化的多样化强制访问控制模型框架,开发了多个高等级的安全特性,并完整实现包括特权分立、身份鉴别、多样化访问控制、用户数据保护、审计等在内的全部结构化保护级的技术和功能要求。KingbaseES纵深防御,为数据库安全保驾护航!

END

边栏推荐
- 自然语言处理系列(一)入门概述
- I'm doing open source in Didi
- PyCharm安装第三方库图解
- 国内市场上的BI软件,到底有啥区别
- Taobao short video, why the worse the effect
- Association modeling method in SAP segw transaction code
- Developers, is cloud native database the future?
- Navigation property and entityset usage in SAP segw transaction code
- LB10S-ASEMI整流桥LB10S
- Hiengine: comparable to the local cloud native memory database engine
猜你喜欢

阿里云SLB负载均衡产品基本概念与购买流程

《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动

DNS的原理介绍

Vonedao solves the problem of organizational development effectiveness

国内市场上的BI软件,到底有啥区别

PyCharm安装第三方库图解

【云原生】Nacos-TaskManager 任务管理的使用

Developers, is cloud native database the future?

SAP SEGW 事物码里的 ABAP Editor

Introduction to sap ui5 dynamicpage control
随机推荐
【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
Introduction to sap ui5 flexiblecolumnlayout control
Four common problems of e-commerce sellers' refund and cash return, with solutions
SAP UI5 ObjectPageLayout 控件使用方法分享
How to connect the API interface of Taobao open platform (super detailed)
CVPR 2022 | single step 3D target recognizer based on sparse transformer
RHCSA4
How do e-commerce sellers refund in batches?
Cf:a. the third three number problem
[cloud native] event publishing and subscription in Nacos -- observer mode
LeetCode20.有效的括号
Alipay transfer system background or API interface to avoid pitfalls
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
RHCSA8
I'm doing open source in Didi
Reshape the power of multi cloud products with VMware innovation
Small case of function transfer parameters
Concurrent performance test of SAP Spartacus with JMeter
Alibaba cloud SLB load balancing product basic concept and purchase process
自然语言处理系列(一)入门概述
