DEPARTMENT OF CSE-CYBER SECURITY
A Major Project On
Securing Data using Blockchain and AI
UNDER THE GUIDENCE OF : SUBMITTED BY:
Mrs. Durga Bhavani ANNEM KOUSHIK REDDY (208R1A6202)
Assistant Professor, CHENCHUGARI RAHUL (208R1A6209)
CSE-Cyber Security dept , CMREC. [Link] (208R1A6211)
RAVULA YASHWANTH (208R1A6251)
ABSTRACT
INTRODUCTION
LITERATURE REVIEW
DESIGN ANALYSIS
EXISTING SYSTEM
PROPOSED SYSTEM
CONTENTS SYSTEM SPECIFICATION
MODULES
INPUT-OUTPUT SCREENSHOTS
TESTING
EXECUTION
FUTURE ENHANCEMENTS
CONCLUSION
Abstract
Data is the input for various artificial intelligence (AI) algorithms to mine valuable features, yet data on the Internet is scattered everywhere
and controlled by different stakeholders who cannot believe in each other, and usage of the data in complex cyberspace is difficult to authorize
or validate. As a result, it is exceedingly difficult to enable data sharing in cyberspace for real big data, as well as a real powerful AI. In this
project, we propose the SecNet, an architecture that can enable secure data storing, computing, and sharing in the large-scale Internet
environment, aiming at more secure cyberspace with real big data and thus enhanced AI with plenty of data sources, by integrating three key
components: 1) blockchain-based data sharing with ownership guarantee, which enables trusted data sharing in the large scale environment to
form real big data; 2) AI-based secure computing platform to produce more intelligent security rules, which helps to construct more trusted
cyberspace; 3) trusted value-exchange mechanism for purchasing security service, providing a way for participants to gain economic rewards
when giving out their data or service, which promotes the data sharing and thus achieves the better performance of AI. Moreover, we discuss
the typical use scenario of SecNet as well as its potential alternative way to deploy, as well as analyze its effectiveness from the aspect of
network security and economic revenue.
2024 Securing Data using Blockchain and AI
Introduction
• In the era of information society, data is the most valuable asset. However, individuals often lack control over how their data is used. Big companies
collect vast amounts of personal data without users' knowledge or consent, posing a great risk of privacy breaches.
• Blockchain and AI can be combined to address this issue. Blockchain guarantees tamper-proof data sharing through consensus mechanisms, while AI
can leverage big data to improve its performance in various tasks such as security threat identification.
• SecNet is a secure networking architecture that utilizes both blockchain and AI. It allows users to control their data and ensures trusted data sharing.
SecNet also employs advanced AI technologies to identify suspicious data-related behaviors and improve overall security.
• In the era of information society, data is the most valuable asset. However, individuals often lack control over how their data is used. Big companies
collect vast amounts of personal data without users' knowledge or consent, posing a great risk of privacy breaches.
• Blockchain and AI can be combined to address this issue. Blockchain guarantees tamper-proof data sharing through consensus mechanisms, while AI
can leverage big data to improve its performance in various tasks such as security threat identification.
• SecNet is a secure networking architecture that utilizes both blockchain and AI. It allows users to control their data and ensures trusted data sharing.
SecNet also employs advanced AI technologies to identify suspicious data-related behaviors and improve overall security.
2024 Securing Data using Blockchain and AI
Literature Review
H. Yin, D. Guo, K. Wang, Z. Jiang, Y. Lyu, and J. Xing have proposed a novel decentralized trusted computing and networking paradigm called Hypernet
in their article “Hyperconnected Network: A Decentralized Trusted Computing and Networking Paradigm.” The article was published in IEEE Network,
volume 32, issued, in January/February 2018. The authors have proposed Hypernet to address the challenge of loss of control over user data in complex
Cyber-Physical Systems (CPS). Hypernet is composed of three main components: the intelligent PDC, the decentralized trusted connection between any
entities based on blockchain as well as a smart contract, and the UDI platform. The authors claim that Hypernet has the capability of protecting data
sovereignty and has the potential to transform the current communication-based information system into a future data-oriented information society.[1]
K. Fan, W. Jiang, H. Li, and Y. Yang have proposed a lightweight RFID protocol for medical privacy protection in IoT in their article “Lightweight RFID
Protocol for Medical Privacy Protection in IoT.” The article was published in IEEE Transactions on Industrial Informatics, volume 14, issue four, pages
1656-1665, in April 2018. The authors have proposed a protocol to address the issue of medical privacy data being easily leaked, which can compromise
the privacy of individuals and hinder the healthy development of the medical industry 1. The proposed protocol ensures the security and privacy of the
collected data via secure authentication 1. The authors have presented a lightweight scheme that can effectively prevent the risk of medical privacy data
being easily leaked.[2]
M. Lecuyer, R. Spahn, R. Geambasu, T.-K. Huang, and S. Sen have presented a novel approach to enhance selectivity in big data protection in their article
“Enhancing Selectivity in Big Data.” The article was published in IEEE Security & Privacy, volume 16, issue, pages 34-42, in January/February 2018. The
authors have argued that today’s companies collect and expose too much personal data, which poses a serious threat to user privacy and security. They
have proposed selective data systems that are designed to identify and retain only the data that is valuable for the company’s current and future workloads
and discard the rest. They have demonstrated the feasibility and effectiveness of their approach using a prototype system called Pyramid, which leverages
count featurization to reduce the data exposure while preserving the accuracy of machine learning tasks.[3]
Y.-A. de Montjoye, E. Shmueli, S. S. Wang, and A. S. Pentland have introduced a personal data management framework called openPDS in their article
“openPDS: Protecting the Privacy of Metadata through SafeAnswers.” The article was published in PLoS ONE, volume 9, issue seven, in July 2014. The
authors have addressed the problem of personal metadata being collected and exposed by various organizations and big data researchers, which poses a
serious threat to user privacy and security. They have proposed SafeAnswers, a new and practical way of protecting the privacy of metadata through a
question-and-answer system. SafeAnswers allows third parties to ask questions whose answers are calculated against the metadata stored in openPDS,
instead of trying to anonymize and share the metadata itself. The authors claim that openPDS and SafeAnswers can reduce the data exposure and protect
the data sovereignty of individuals, while enabling the creation of smart data-driven services and data science research.[4]
2024 Securing Data using Blockchain and AI
Design Analysis
Use Case Diagram
2024 Securing Data using Blockchain and AI
Activity Diagram
2024 Securing Data using Blockchain and AI
Class Diagram
2024 Securing Data using Blockchain and AI
Sequence Diagram
2024 Securing Data using Blockchain and AI
State Chart Diagram
2024 Securing Data using Blockchain and AI
Existing System
Given data is undoubtedly the oil of the information society, every big company wants to collect data as much as possible, for their future
competitiveness. An increasing amount of personal data, including location information, web- searching behavior, user calls, and user preference, is
being silently collected by the built-in sensors inside the products from those big companies, which brings in a huge risk of privacy leakage of data
owners. Moreover, the usage of those data is out of the control of their owners, since currently the associate editor coordinating the review of this
manuscript and approving it for publication was Chi-Yuan Chen. there is no reliable way to record how the data is used and by whom, and thus has
little
Methods to trace or punish the violators who abuse those data. That is, a lack of ability to effectively manage data makes it difficult for an individual to
control the potential risks associated with the collected data. For example, once the data has been collected by a third party (e.g., a big company), the
lack of access to this data hinders an individual from understanding or managing the risks related to the collected data. Meanwhile, the lack of
immutable recording for the usage of data increases the risks of abusing them
2024 Securing Data using Blockchain and AI
Proposed System
We aim to secure data by combining blockchain and AI together and design a Secure Networking architecture (termed as SecNet) to significantly
improve the security of data sharing, and then the security of the whole network, even the whole CPS. In SecNet, to protect data, one of the biggest
challenges is where and how to store data, because users must give their data to service providers if they want to use certain services or applications.
This is caused by the inherent coupling of user data and application in current service mechanisms, which significantly hinders the development of data
protection and application innovation. Inspired by the concept of a Personal Data Store (PDS) from open PDS and the Private Data Center (PDC) from
Hypernet, SecNet finally inherits and adopts PDC instead of PDS, as PDC is more suitable to deploy and to deal with this problem, since it provides a
more secure and intelligent data storage system via physical entities instead of software-based algorithms as in open PDS. Each PDC serves as a secured
as well as centralized physical space for each SecNet user where his/her data lives Embedding PDC into SecNet would allow users to monitor and
reason about what and why their data is used as well as by whom, meaning the users can truly control every operation on their data and achieve fine-
grained management on access behaviors for data. Besides PDC, other choices can also be applied for the data stored in SecNet according to certain
requirements.
2024 Securing Data using Blockchain and AI
System Specification
HARDWARE REQUIREMENTS SOFTWARE REQUIREMENTS
Operating system : Windows 8 / 10
Processor : i5 IDE : Visual studio code
Hard disk : 20gb Front End : HTML, CSS
Mouse : Any Mouse Back End : Python 3.7.4
RAM : 4GB (minimum)
Frame : Django
Keyboard : Any Keyboard
Database : MySQL.
Browser : Internet explorer, Firefox, Chrome.
2024 Securing Data using Blockchain and AI
Modules
Doctor: Patients: Transaction manager:
The model can predict outbreak and can give suggestion to The model can be trained on the basis of suggestions given to Every user in the Blockchain network will get an authorized
the doctor. In healthcare sectors, we use lots of machines other patients (by doctors) having same problems or symptoms. certificate from Certificate Authority. It will be going to
and equipment’s to perform any medical test. Every The Patient can get lifestyle advice. On the basis of patient’s provide identity to the user who will going to transact in the
machine or part of machine has its own life span. It can symptoms, the trained model can give clinical suggestions to network. The identity will be digital certificate. The digital
also predict the need to change/remove the machine or a doctors. The model can be trained with real data. This will certificate will be used by the user to sign the transaction and
part of machine. Every authenticated user will have copy increase the efficiency and accuracy of models thereby submit it to the blockchain. The benefits of signing are:
of shared ledger. This will resolve data acquisition reducing the additional cost to be paid to central authority. If a
problem. The machine learning models can be directly fed patient does any basic enquiry regarding his/her health, the • Authenticate the blockchain that the user performing or
with data which will be highly reliable and results can be trained model with the help of Natural Language Processing requesting any transaction is a legitimate user.
retrieved. The best result obtained has the accuracy can identify the disease as well as give treatment suggestion.
• Ensuring that user has rights to access the ledger for the
percentage of 98.51%. The machine learning algorithm
transaction they are performing. For instance, Patient will
can also give lifestyle suggestion to patient on the basis of
get certificate from the authority. The Patient can access
current medical situation and medical history.
his/her own details but will not be eligible to access the
details of other patients. Patient will not be eligible to
view details regarding other activities.
2024 Securing Data using Blockchain and AI
Input – Output Screenshots
Admin Login Page Admin Home Page
2024 Securing Data using Blockchain and AI
Admin View Registered Patient Admin View Registered Doctor
2024 Securing Data using Blockchain and AI
Doctor Registration Doctor Login Page
2024 Securing Data using Blockchain and AI
Doctor Home Page
Patient Analysis
2024 Securing Data using Blockchain and AI
Write Prescription Patient Registration Page
2024 Securing Data using Blockchain and AI
Patient Login Page Patient Home Page
2024 Securing Data using Blockchain and AI
Patient View Symptoms
Patient Disease Page
2024 Securing Data using Blockchain and AI
Patient View Prescription
Patient Buy Prescription
2024 Securing Data using Blockchain and AI
Transaction Manager Home Page
Transaction Manager Login Page
2024 Securing Data using Blockchain and AI
View All Transaction View All Purchased
2024 Securing Data using Blockchain and AI
Testing
S. No Test Cases Expected Result Result Remarks (If Fail)
1. Doctor registered If doctor registration successfully. Pass If doctor is not registered.
2. Doctor login If doctor name and password is correct Pass If doctor name or password is not
then it will getting valid page. correct.
3. Patient registration If patient is registered successfully. Pass If patient is not registered.
4. Patient login Patient name and password is correct Pass If patient name or password is
then getting valid page. wrong.
5. Admin Doctor rights and patient rights will be Pass If doctor and patient are not
accepted here. registered.
6. Patient upload data Choose or select patient data and Pass If patient is not select or upload
upload in admin. the data.
7. View doctor uploaded data’s Doctor uploaded patient data details Pass If patient data is not uploaded in
are available here admin.
8. Patient view doctor data’s Doctor uploaded patient data details Pass If patient data is not uploaded in
are available here and we can view admin.
patient data
9. Patient inbox All the details about patient data Pass If patient data is not available.
10. Transaction manager Receive payments from patients, Pass If data is not available.
calculate ledger amount details, last
transaction amount requested patient
data
2024 Securing Data using Blockchain and AI
Execution
Step 1: Start Wamp Server
Step 2: Run MySQL Console
Step 3: Paste Dataset to console
Step 4: Locate project file folder
Step 5: Locate [Link] file
Step 6: Type CMD in search explorer
Step 7: Enter Command “python [Link] runserver”
Step 8: Paste the http address in any browser
Step 9: To eliminate the address we use CTRL+C
Securing Data using Blockchain and AI
2024
Future Enhancement
Interoperability with Existing Systems:
Enhance compatibility with existing cybersecurity and AI systems to facilitate seamless integration. This would allow organizations to adopt
SecNet without a complete overhaul of their current infrastructure.
Advanced Machine Learning Models:
Integrate state-of-the-art machine learning models and algorithms to enhance the AI-based secure computing platform. This would improve the
system's ability to detect and respond to evolving cybersecurity threats.
Scalability and Performance Optimization:
Optimize the scalability of the blockchain-based data-sharing component to handle an increasing volume of data in large-scale environments
efficiently. This may involve exploring advanced consensus algorithms and network optimizations.
Quantum-Resistant Security:
Anticipate and prepare for the advent of quantum computing by implementing quantum-resistant cryptographic techniques. This would future-
proof the security of the SecNet architecture against potential threats from quantum computers.
2024 Securing Data using Blockchain and AI
Conclusion
In conclusion, the SecNet architecture emerges as a promising solution to address the challenges associated with data sharing, security,
and trust in the expansive and complex landscape of cyberspace. By seamlessly integrating three pivotal components blockchain-based
data sharing with ownership guarantee, an AI-based secure computing platform, and a trusted value-exchange mechanism SecNet
endeavours to pave the way for a more secure and robust cyberspace, fostering enhanced AI capabilities through access to abundant
and trustworthy data sources. The blockchain-based data-sharing component establishes a foundation for trusted collaboration in large-
scale environments, ensuring data integrity and ownership, and forming the bedrock for real big data. This not only mitigates concerns
related to scattered and untrusted data on the Internet but also facilitates a secure ecosystem.
Securing Data using Blockchain and AI
2024
Reference
1. 1. H. Yin, D. Guo, [Link], Z. Jiang, Y. Lyu, and J. Xing, ``Hyperconnected network: A decentralized trusted computing and networking
paradigm,'' IEEE Netw., vol. 32, no. 1, pp. 112117, Jan./Feb. 2018.
2. K. Fan, W. Jiang, H. Li, and Y. Yang, ``Lightweight RFID protocol for medical privacy protection in IoT,'' IEEE Trans Ind. Informat., vol. 14,
no. 4, pp. 1656_1665, Apr. 2018.
3. T. Chajed, J. Gjengset, J. Van Den Hooff, M. F. Kaashoek, J. Mickens, R. Morris, and N. Zeldovich, ``Amber: Decoupling user data from Web
applications,'' in Proc. 15th Workshop Hot Topics Oper. Syst. (HotOS XV), Warth-Weiningen, Switzerland, 2015, pp.1_six.
4. M. Lecuyer, R. Spahn, R. Geambasu, T.-K. Huang, and S. Sen, ``Enhancing selectivity in big data,'' IEEE Security Privacy, vol. 16, no. 1, pp.
34_forty-two,
5. Jan./Feb. 2018. Y.-A. de Montjoye, E. Shmueli, S. S. Wang, and A. S. Pentland, ``openPDS: Protecting the privacy of metadata through
SafeAnswers,'' PLoS ONE, vol. 9, no. 7, 2014, Art. no. e98790.
6. C. Perera, R. Ranjan, and L. Wang, ``End-to-end privacy for open big data markets,'' IEEE Cloud Comput., vol. 2, no. 4, pp. 44_53, Apr. 2015.
7. X. Zheng, Z. Cai, and Y. Li, ``Data linkage in smart Internet of Things systems: A consideration from a privacy perspective,'' IEEE
[Link]., vol. 56, no. 9, pp. 55_sixty-one, ep. 2018.
Securing Data using Blockchain and AI
2024
8. Q. Lu and X. Xu, ``Adaptable blockchain-based systems: A case study for product traceability,'' IEEE Softw., vol. 34, no. 6, pp. 21_27,Nov./Dec. 2017.
9. Y. Liang, Z. Cai, J. Yu, Q. Han, and Y. Li, ``Deep learning-based inference of private information using embedded sensors in smart devices'' IEEE Netw. Mag.,
vol. 32, no. 4, pp. 8_14, Jul./Aug. 2018.
10. Q. Xia, E. B. Sifah, K. O. Asamoah, J. Gao, X. Du, and M. Guizani, ``MeDShare: Trustless medical data sharing among cloud service providers via
blockchain,'' IEEE Access, vol.5, pp. 14757_14767, 2017.
11. D. E. O'Leary, ``Arti_cial intelligence and big data,'' IEEE Intell. Syst., vol. 28, no. 2, pp. 96_99, Mar. 2013.
12. Halevy, P. Norvig, and F. Pereira, ``The unreasonable effectiveness of data,'' IEEE Intell. Syst., vol. 24, no. 2, pp. 8_12, Mar. 2009.59
13. Z. Cai and X. Zheng, ``A private and ef_cient mechanism for data uploading in smart cyberphysical systems,'' IEEE Trans. Netw. Sci. Eng., to be published.
doi: 10.1109/TNSE.2018.2830307.
14. Dorri, M. Steger, S. S. Kanhere, and R. Jurdak, ``Blockchain: A dis- tributed solution to automotive security and privacy,'' IEEE Commun. Mag., vol. 55, no.
12, pp. 119_125, Dec. 2017.
15. J. Wang, M. Li, Y. He, H. Li, K. Xiao, and C. Wang, ``A blockchain based privacypreserving incentive mechanism in crowdsensing applications,'' IEEE Access,
vol. 6, pp. 17545_17556, 2018.
16. Sun, A. Shrivastava, S. Singh, and A. Gupta, ``Revisiting unreasonable effectiveness of data in deep learning era,'' in Proc. IEEE Int. Conf. Comput. Vis.
(ICCV), Oct. 2017, pp. 843_852.
17. W. Meng, E. W. Tischhauser, Q. Wang, Y. Wang, and J. Han, ``When intrusion detection meets blockchain technology: A review,'' IEEE Access, vol. 6, pp.
10179_10188, 2018.
Securing Data using Blockchain and AI
2024
18. J.-H. Lee, ``BIDaaS: Blockchain based ID as a service,'' IEEE Access, vol. 6, pp. 2274_2278, 2017.
19. K. Wang, H. Yin, W. Quan, and G. Min, ``Enabling collaborative edge computing for software de_ned vehicular networks,'' IEEE Netw., vol. 32, no. 5, pp.
112_117, Sep./Oct. 2018.
20. B. Kurtulmus and K. Daniel, ``Trustless machine learning con- tracts; evaluating and exchanging machine learning models on the ethereum blockchain,''
2018, arXiv:1802.10185. [Online]. Available: [Link]
21. L. Buczak and E. Guven, ``A survey of data mining and machine learning methods for cyber security intrusion detection,'' IEEE Commun. Surveys Tuts.,
vol. 18, no. 2, pp. 1153_1176, 2nd Quart., 2016.
22. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, ``Generative adversarial net-works,'' 2014,
arXiv:1406.2661. [Online]. Available: [Link]
23. E. C. Ferrer, ``The blockchain: A new framework for robotic swarm systems,'' 2017, arXiv:1608.00695. [Online]. Available:
[Link] IPFS. Accessed: Jun. 5, 2019. [Online]. Available: [Link]
24. S. T. Zargar, J. Joshi, and D. Tipper, ``A survey of defense mechanisms against distributed denial of service (DDoS) _ooding attacks,'' IEEE Commun.
Surveys Tuts., vol. 15, no. 4, pp. 2046_2069, 4th Quart., 2013.60
25. Praseed and P. S. Thilagam, ``DDoS attacks at the application layer: Challenges and research perspectives for safeguardingWeb applications,'' IEEE
Commun. Surveys Tuts., vol. 21, no. 1, pp. 661_685, 1st Quart., 2019.
Securing Data using Blockchain and AI
2024
Thank You